Gossamer Forum
Quote Reply
Y2K ?
I am assuming, since the date functions use the + or - 1900 that they are not Y2K compliant. Are there any plans to ubgrade the date functions?

sub get_date
sub date_to_unix

------------------
--
Bruce Dienes
bdienes@iname.com
Quote Reply
Re: Y2K ? In reply to
Your assumptions are incorrect, Bruce.

The year value (the value that's added to 1900) is the number of years since 1900. In the year 2000, the year value will be 100.

------------------
JPD
Quote Reply
Re: Y2K ? In reply to
Well, that's true, but then you are generating a three digit year instead of a two digit year. Wouldn't that mess up the formatting, etc?

Bruce


------------------
--
Bruce Dienes
bdienes@iname.com
Quote Reply
Re: Y2K ? In reply to
Not if you add 1900 to it. That won't be a problem for another 8000 years or so. If somebody is still using DBMan at that point, they can worry about formatting for themselves! Smile

------------------
JPD
Quote Reply
Re: Y2K ? In reply to
Perl's localtime() function returns the year as the number of years since 1900. So in the year 2000, you will get 100 out of that function. Adding 1900 to it will produce the proper value.

The problem in the year 2037 is on a UNIX level and has to do with storing the dates as a 32 bit integer. But hopefully by then everyone will be on 64 bit platforms at least.

There are no known Y2K issues with any of the scripts.

Cheers,

Alex