Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Date Comparison..?

by andreychek (Parson)
on Sep 13, 2001 at 04:56 UTC ( #112080=note: print w/ replies, xml ) Need Help??

in reply to Date Comparison..?

As I pointed out on a previous topic, I've always found it easiest to deal with time/date stuff by first converting the dates I'm dealing with to seconds since the epoch (a numeric value). If you make use of the time function, it returns seconds since the epoch. If you have a date, and wish to convert it to seconds, you can use Time::Local to do so.

Once you have your date in seconds, it's very easy to do tests and manipulations on that data. For an example, see the node I linked above. Good luck!


Comment on Re: Date Comparison..?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-11-27 05:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls