[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl 5 (localtime) - Y2K issue
- Subject: [ale] Perl 5 (localtime) - Y2K issue
- From: oloryn at mindspring.com (Ben Coleman)
- Date: Thu, 02 Sep 1999 11:46:35 -0500
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.