Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have this oneliner, and i ask my friend to run on his PC (he's using Mac)
And he gotperl -le "use Date::Manip qw/UnixDate/;print UnixDate('today','%Y-%m- +%d-%H-%M-%S');"
2011-09-30-00-00-00
I am sure t hours, minutes and seconds are converted incorrectly (he said "00" always returned for %H, %M and %s)
Do you know why ?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date::Manip UnixDate, Hours minutes and seconds are not returned correctly
by BrowserUk (Patriarch) on Sep 30, 2011 at 01:33 UTC | |
by Anonymous Monk on Sep 30, 2011 at 01:42 UTC | |
by BrowserUk (Patriarch) on Sep 30, 2011 at 01:52 UTC | |
by Anonymous Monk on Sep 30, 2011 at 02:03 UTC | |
by ambrus (Abbot) on Sep 30, 2011 at 19:05 UTC |