Re: Y2K perl snag!

2000-01-02 Thread Oleg Goldshmidt
Ira Abramov [EMAIL PROTECTED] writes: please publish here more tips and glitches if you find them. Well, since you ask - here is a snippet from the headers of an email: X-Mailer: ELM [version 2.4ME+ PL34 (25)] Date: Sat, 1 Jan 100 18:22:07 +0200 (IST) And in the good old community

Re: Y2K perl snag!

2000-01-02 Thread Oleg Goldshmidt
Oleg Goldshmidt [EMAIL PROTECTED] writes: In all probability all these stem from the structure tm - see "man 3 ctime". ctime(3) does not use struct tm, but asctime(3) and mktime(3) do. The man page is common for all of them (and some others). Sorry for the confusion. -- Oleg Goldshmidt |

Re: Y2K perl snag!

2000-01-02 Thread Leonid Igolnik - LiM
|$year = $year % 100; # get the real "years since last beginning of | # the century" I would use: $year = sprintf("%02d", $year % 100); Other wise you will get dates like this 21/11/0, unless ofcourse you use printf later. Leonid Igolnik aka LiM

Re: Y2K perl snag!

2000-01-02 Thread Geoffrey S. Mendelson
Oleg Goldshmidt wrote: Well, since you ask - here is a snippet from the headers of an email: X-Mailer: ELM [version 2.4ME+ PL34 (25)] Date: Sat, 1 Jan 100 18:22:07 +0200 (IST) And in the good old community tradition of snitching on friends, let me mention that Geoff Mendelson

Re: Y2K perl snag!

2000-01-02 Thread guy keren
On Sun, 2 Jan 2000, Ira Abramov wrote: ($sec,$min,$hour,$mday,$month,$year) = localtime(time); print $year."\n"; you get: 100! in perl 4 (v4.036), there used to be a librarry function named 'timelocal', which makes the reverse translation (i.e. from year+month+day+hour+minute+second into