Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: TimeZone convert problem.

by Marshall (Abbot)
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997358]
[LanX]: readme version number and so on ...
[stevieb]: with M::S, you can also add other tags, but defaults work... such as --license=perl --eumm
[LanX]: I'm not a big fan of pure make, apparently the auto generated ones are so complicated to be able to work with all possible makes
[stevieb]: I find the M::S makefiles it generates are quite straight forward, and I usually have to add a few things (github info etc). They're about 15 lines or so give or take.
[Corion]: I don't think the EUMM-generated Makefile is that complicated ;)
[stevieb]: Corion++
[jedikaiti]: RonW++ #I have so much accumulated in my memory that finding the right item at a given moment often fails
[LanX]: corion only > 800 lines

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-08-18 21:00 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (310 votes). Check out past polls.