Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Converting local time to UTC mystery

by rovf (Priest)
on Sep 06, 2011 at 09:10 UTC ( #924337=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Converting local time to UTC mystery
in thread Converting local time to UTC mystery

Indeed this works, thanks a lot!!! I wonder, where this is documented...

For completeness, here the working function call:

my $seconds_since_epoch=str2time($timestamp_local, 'local');

-- 
Ronald Fischer <ynnor@mm.st>


Comment on Re^5: Converting local time to UTC mystery
Download Code
Replies are listed 'Best First'.
Re^6: Converting local time to UTC mystery
by ikegami (Pope) on Sep 06, 2011 at 15:48 UTC
    «The time_zone parameter can be either a scalar or a DateTime::TimeZone object. A string will simply be passed to the DateTime::TimeZone->new method as its "name" parameter. This string may be an Olson DB time zone name ("America/Chicago"), an offset string ("+0630"), or the words "floating" or "local". See the DateTime::TimeZone documentation for more details.»

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-30 11:04 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 (271 votes), past polls