"Robert Elliott (Admin)" wrote:
> Interesting. In perl, date returns year minus 1900, so conventional wisdom
> has it you add 1900. So was the javascript thingy in nescape written in
> perl, I wonder? Anyway, I'd guess that some idiot put in half a check;
> something along the lines of 'if year < 100 year += 1900'.
>> Not your traditional y2k bug, but more of some dope half-thinking about
> the millennium and implementing what our french cousins would call 'un
> solution demi-arsee'.
sigh. it's not because of perl.
it's due to the way struct tm is in libc. perl is just reproducing that
behaviour.
man localtime(3)
kevin
--
kevin at suberic.net Nutrition Facts
fork()'ed on 37058400 Puns: 100% RDA (% good puns: 0)
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!