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

Re: Seeking an example of Time::Period usage

by imp (Priest)
on Dec 21, 2006 at 19:08 UTC ( #591162=note: print w/replies, xml ) Need Help??

in reply to Seeking an example of Time::Period usage

The time is specified as per the time() function, which is assumed to be the number of non-leap seconds since January 1, 1970.
DateTime::datetime returns a formatted string, e.g. 2006-09-11T00:00:00. You should be using $dt->epoch instead.

Replies are listed 'Best First'.
Re^2: Seeking an example of Time::Period usage
by jking (Novice) on Dec 21, 2006 at 19:18 UTC
    Works great. Thanks. I totally missed that and now I see it after you've pointed it out. Cheers.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://591162]
[Discipulus]: [OT] if i have an svg image (a map of italian provinces) like this one in which way i need to interact with it to have a geochart?
[Corion]: I haven't found a good way to plot stuff into country maps... Maybe one of the demos of D3.js has something usable?
[Discipulus]: i need to use css to get and colorize various different IDs?
[Corion]: I haven't used it, but http://datamaps. looks promising

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-03-23 09:18 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.