in reply to Print time in Date"T"time+Gmtoffset
use DateTime; local $\ = $/; print DateTime->now( qw[ time_zone local ] )->strftime('%F-%H-%M-%S%z' +); print DateTime->now( qw[ time_zone Greenwich ] )->strftime('%F-%H-%M-% +S%z'); __END__ 2014-03-31-23-45-31-0700 2014-04-01-06-45-31+0000
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print time in Date"T"time+Gmtoffset ( iso-8601 )
by ikegami (Patriarch) on Apr 01, 2014 at 14:24 UTC | |
by Anonymous Monk on Apr 01, 2014 at 15:13 UTC | |
by ikegami (Patriarch) on May 31, 2014 at 05:06 UTC | |
by Anonymous Monk on May 31, 2014 at 23:26 UTC | |
by ikegami (Patriarch) on Jun 14, 2014 at 03:24 UTC | |
|