Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Date::Manip and date

by SBECK (Hermit)
on Jul 10, 2015 at 11:45 UTC ( #1134127=note: print w/replies, xml ) Need Help??


in reply to Re^3: Date::Manip and date
in thread Date::Manip and date

Date::Manip always parses dates in the local time zone (unless of course there is a zone attached to the date string), so you're right that my script wasn't exact. My apologies.

If you want to parse dates in UTC by default, use:

use Date::Manip::Date; my $date = new Date::Manip::Date; $date->config("setdate","now,UTC"); $date->parse('1988-12-13'); print $date->printf('%O -> %s');
and that gives the same result as the DateTime script.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-10-30 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (284 votes). Check out past polls.

    Notices?