in reply to Anyone know how to get DateTime::Format::W3CDTF, or DateTimeX::Web to print localtime?
For the life of me, I can't get either to work. I'm probably just over complicating it.
What code where?
use DateTime::Format::W3CDTF; my $w3c = DateTime::Format::W3CDTF->new; my $localtime = DateTime->now( qw[ time_zone local ] ); print join "\n", $localtime->strftime( q/%F-%H:%M:%S%z/), $w3c->format_datetime( $localtime );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Anyone know how to get DateTime::Format::W3CDTF, or DateTimeX::Web to print localtime?
by taint (Chaplain) on Nov 26, 2013 at 21:44 UTC | |
by taint (Chaplain) on Nov 26, 2013 at 22:56 UTC | |
by taint (Chaplain) on Nov 27, 2013 at 13:58 UTC |