[ale] Perl 5 (localtime) - Y2K issue
Ben Coleman
oloryn at mindspring.com
Thu Sep 2 12:46:35 EDT 1999
On Thu, 2 Sep 1999 10:41:40 -0400, Chris Hamilton wrote:
>I'm not sure I understand this problem. Once 2000 hits, the year will be
>represented as 100. In 2001, it will be 101 and so forth.
This is correct. localtime has always been Y2K compliant, though some
programmer's code hasn't. If you have code that does '19' .
(localtime)[5] to get a 4-digit year, it won't work correctly(hence the
joking references to next year's YAPC as 'YAPC 19100'). If you've
correctly done 1900+(localtime)[5], you'll be fine. No changes to
localtime are needed.
Ben
--
Ben Coleman oloryn at mindspring.com | The attempt to legislatively
http://oloryn.home.mindspring.com/ | micromanage equality results, at
| best, in equal misery for all.
More information about the Ale
mailing list