Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: TimeZone convert problem.

by Anonymous Monk
on Oct 04, 2012 at 20:35 UTC ( #997322=note: print w/ replies, xml ) Need Help??


in reply to Re^2: TimeZone convert problem.
in thread TimeZone convert problem.

Start with one of these

my $dt = DateTime::Format::ISO8601->parse_datetime( $datestr ); my $dt = DateTime::Format::DateParse->parse_datetime( $datestr ); my $dt = DateTime::Format::Flexible->parse_datetime( $datestr );
Then finish with
$dt->set_time_zone( 'Country/City' ); print $dt->strftime( q[%a %b %e %H:%M:%S %Z %Y] ), "\n";
or whatever


Comment on Re^3: TimeZone convert problem.
Select or Download Code
Re^4: TimeZone convert problem.
by ikegami (Pope) on Oct 06, 2012 at 04:49 UTC
    or
    my $dt = DateTime::Format::RFC3339->parse_datetime( $datestr );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-12-21 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (107 votes), past polls