Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Converting local time to UTC mystery

by rovf (Priest)
on Sep 05, 2011 at 13:35 UTC ( [id://924223]=note: print w/replies, xml ) Need Help??


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

As HTTP::Date promises, when timezone isn't specified, the distance from epoch str2time gives, fed to localtime, produces the original date supplied
Exactly, and my understanding (and here I probably was wrong) was, that I can supply the optional second parameter to str2time, saying that I don't want to have the result in localtime, but in a different timezone (in my case, 'UTC'). Since this is obviously not the case, what then is the purpose of the second argument to str2time?

Could you please give me an example, how to call str2time, so that I get the result in UTC?

-- 
Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found