Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://485428]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-06-22 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.