Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: TimeZone convert problem.

by hmb104 (Sexton)
on Oct 04, 2012 at 19:56 UTC ( #997316=note: print w/ replies, xml ) Need Help??

Comment on Re^2: TimeZone convert problem.
Re^3: TimeZone convert problem.
by Anonymous Monk on Oct 04, 2012 at 20:35 UTC
    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
      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://997316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-06 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls