Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
"be consistent"
 
PerlMonks  

Re: figuring difference in times?

by rjbs (Pilgrim)
on Aug 20, 2005 at 20:09 UTC ( #485428=note: print w/ replies, xml ) Need Help??


in reply to figuring difference in times?

I'd just use Time-Duration. You give it a number of seconds (like the difference between two time() results) and it can tell you that it was "four years, six months, and two hours ago" for example. DateTime is neat, but using it just for this strikes me as nuts.

rjbs


Comment on Re: figuring difference in times?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-04-16 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls