Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 studying the Monastery: (17)
As of 2014-07-29 13:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls