in reply to Time::Piece wierdness - sanity check please!
You are trying to use the string returned by a scalar context call to locatime() as the integer unix epoch time you really mean. You can't add ONE_HOUR to 'Sat Mar 6 01:55:26 2004' and get what you want!
my $time = localtime; # you mean $time = time(); print $time, $/; $time = time(); print $time, $/; __DATA__ Sat Mar 6 01:55:26 2004 1078538126
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Time::Piece wierdness - sanity check please!
by jdtoronto (Prior) on Mar 06, 2004 at 02:05 UTC | |
by graff (Chancellor) on Mar 06, 2004 at 15:56 UTC |