Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Which DateTime:: module to use?

by moritz (Cardinal)
on Aug 26, 2012 at 18:19 UTC ( #989863=note: print w/replies, xml ) Need Help??


in reply to Which DateTime:: module to use?

You can split out the values and pass them to Time::Local::timelocal (which is a core module), and get a UNIX timestamp back. That is just a number of seconds since a reference date, so if you want to compare two dates if they are 12h apart, you can just check their difference for 12 * 60 * 60.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989863]
help
Chatterbox?
[LanX]: hmm this joke may be too old for millennials
[LanX]: s/joke/reference/
[Eily]: well, I didn't get the joke and I didn't get the image either because the proxy won't let me
[erix]: Leasure Suit L.
[LanX]: THEY are restricting your Internet?
[LanX]: join the fight brother

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2017-03-23 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.