Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: change hour in timestamp

by NERDVANA (Deacon)
on Jun 05, 2022 at 14:14 UTC ( [id://11144414]=note: print w/replies, xml ) Need Help??


in reply to change hour in timestamp

My first (and usually last) stop for all date parsing is DateTime::Format::Flexible. It gets this one just fine:

use DateTime::Format::Flexible; sub date { DateTime::Format::Flexible->parse_datetime(shift); } my $d= date('Sat Jun 4 22:47:31 2022'); $d->set_time_zone('+0200')->set_time_zone('UTC'); print "$d\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found