in reply to Re^2: TimeZone convert problem.
in thread TimeZone convert problem.
Start with one of these
Then finish withmy $dt = DateTime::Format::ISO8601->parse_datetime( $datestr ); my $dt = DateTime::Format::DateParse->parse_datetime( $datestr ); my $dt = DateTime::Format::Flexible->parse_datetime( $datestr );
or whatever$dt->set_time_zone( 'Country/City' ); print $dt->strftime( q[%a %b %e %H:%M:%S %Z %Y] ), "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: TimeZone convert problem.
by ikegami (Patriarch) on Oct 06, 2012 at 04:49 UTC |
In Section
Seekers of Perl Wisdom