spacewarp has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to convert December 25, 1948 to epoch seconds. The man page claims that Time::Local can handle dates back to 1900, but it doesn't seem so in this case. And why on earth is it converting "48" to "148"?? Any help would be greatly appreciated.{9} % perl use Time::Local; $epoch = timelocal(0, 0, 0, 25, 11, 48); print "$epoch\n"; Can't handle date (0, 0, 0, 25, 11, 148) at - line 2 {10} %
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bug in Time::Local?
by Happy-the-monk (Canon) on Jul 02, 2004 at 18:56 UTC | |
by spacewarp (Pilgrim) on Jul 02, 2004 at 19:57 UTC | |
|
Re: Bug in Time::Local?
by idsfa (Vicar) on Jul 02, 2004 at 18:59 UTC | |
|
Re: Bug in Time::Local?
by Zaxo (Archbishop) on Jul 02, 2004 at 19:03 UTC | |
by fglock (Vicar) on Jul 02, 2004 at 19:28 UTC | |
|
Re: Bug in Time::Local?
by eserte (Deacon) on Jul 02, 2004 at 18:58 UTC | |
|
Re: Bug in Time::Local?
by bart (Canon) on Jul 03, 2004 at 13:34 UTC |