LinuxPlanet: Perl and the Y2k problem | Linux Today

LinuxPlanet: Perl and the Y2k problem

Written By
Web Webster
Web Webster
Oct 21, 1999

Now, what about Perl? Is Perl “Year 2000 Compliant”? The
answer is that Perl is every bit as Y2K compliant as is your
pencil; no more, and no less. Does that comfort you? It
shouldn’t.
Just as you can commit Y2K transgressions with your
pencil, so too you can do so with Perl–or with any other tool, for
that matter. You don’t really even have to go very far out of your
way to do so; witness the demonstration of the perfectly compliant
cal program provided above.”

“The date and time functions supplied with Perl are the gmtime()
and localtime() functions, which are derived from their namesakes
in the C programming language. These supply adequate information to
determine the year well beyond 2000. 2038 is when trouble strikes,
but only for those of us then still stuck on 32-bit machines, a
somewhat unlikely albeit admittedly not entirely unthinkable
situation.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.