Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Timezone conversion in Perl

by rlucas (Scribe)
on Dec 27, 2007 at 06:30 UTC ( [id://659160]=note: print w/replies, xml ) Need Help??


in reply to Re: Timezone conversion in Perl
in thread Timezone conversion in Perl

I think Date::Manip is considered the slow (speedwise, not mental-capacity wise) cousin of DateTime. Either should be able to handle the fairly trivial case of timezone conversion. (What's not trivial is YOU remembering to use the same standard way of referring to time everywhere! Once you do that, adding some minutes is the easy part.)

I am also fairly certain that any mainstream module is going to rely upon the system time's GMT offset (e.g. -0500) rather than trying to disambiguate abbreviations, so no worries there.

Replies are listed 'Best First'.
Re^3: Timezone conversion in Perl
by dsheroh (Monsignor) on Dec 27, 2007 at 17:10 UTC
    Not just "considered", the Date::Manip documentation has an entire "should I use Date::Manip" section in which the modules author explains at great length that Date::Manip is by far the most flexible date/time module out there, but also the slowest (in large part because of that extreme flexibility).

      Well, that section more or less predates the DateTime project, to the best of my knowledge.

      Date::Manip is quite slow, but the DateTime project has never made speed anywhere near as high a priority as correctness, completeness, and having a sane API.

      The original poster didn't make it entirely clear what he wants to do, but the Perl Advent calendar article mentioned in another post is a decent pointer for using DateTime is a good start.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found