$^W = 1; use Time::Local; print "Perl: $]\n"; print "VERSION: $Time::Local::VERSION\n"; my $time = '1111461913'; print "Epoch time: $time\n"; print "ctime time: ",scalar(localtime($time)),"\n"; print " localtime: ",join(", ",localtime($time)),"\n"; print " timelocal: ",timelocal(localtime($time)),"\n";
Results:
Perl: 5.006001 Use of uninitialized value in concatenation (.) or string at test.pl line 5. VERSION: Epoch time: 1111461913 ctime time: Tue Mar 22 04:25:13 2005 localtime: 13, 25, 4, 22, 2, 105, 2, 80, 0 timelocal: 1111461913
Perl: 5.008003 VERSION: 1.07 Epoch time: 1111461913 ctime time: Tue Mar 22 04:25:13 2005 localtime: 13, 25, 4, 22, 2, 105, 2, 80, 0 timelocal: 1111461913
I am quite convinced that the fact that this is on Windows, is irrelevant. Now I am
curious what $Time::Local::VERSION you have, and what's on its lines 76 and 67 through 69, where the warnings come from.p.s. Also note that the figures that come out of it, depend on your time zone. Perhaps there's a connection to that, too. So, what time zone are you in? I'm in CET. Summer time starts in a week. Ooh, perhaps another clue!
In reply to Re: Lots of errors from Time::Local on Windows
by bart
in thread Lots of errors from Time::Local on Windows
by sgifford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |