Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: TimeZone convert problem.

by Marshall (Prior)
on Oct 05, 2012 at 02:02 UTC ( #997358=note: print w/ replies, xml ) Need Help??


in reply to TimeZone convert problem.

how I can convert the time format such as "2012-10-02T12:34:08.94Z" to a UNIX format?

You cannot do that because the Unix time format is an integer seconds from the "epoch time". ".94" hundredth's seconds is meaningless.

A conversion from "2012-10-02 12:34:08Z" to a Unix time_t integer is possible.

It is possible to track higher resolutions that one second. But you need a different data structure than a time_t value.

I would look at Date::Time.


Comment on Re: TimeZone convert problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-07-08 03:02 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 (93 votes), past polls