Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: GMT to PST format

by SBECK (Monk)
on Jun 21, 2010 at 12:56 UTC ( #845739=note: print w/ replies, xml ) Need Help??


in reply to Re^4: GMT to PST format
in thread GMT to PST format

Actually, this is NOT guaranteed to work.

Date::Manip version 5.xx does not include the Date::Manip::Date module. Date::Manip 6.xx is a complete rewrite which breaks the module into several pieces including Date::Manip::Date for working with dates (and other modules for working with deltas, timezones, etc.). The actual Date::Manip module is just a backwards-compatible wrapper around these modules.

So, if you say:

   use Date::Manip;
   $obj = new Date::Manip::Date;
and you have Date::Manip 5.xx installed, this code will fail, exactly as described elsewhere in the thread.

As suggested elsewhere in the thread, the proper solution IS to include the line:

   use Date::Manip::Date;
in the code.


Comment on Re^5: GMT to PST format

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-07-10 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (202 votes), past polls