Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How do I find difference between two timestamps?

by Diakoneo (Beadle)
on Nov 16, 2004 at 18:42 UTC ( [id://408202]=note: print w/replies, xml ) Need Help??


in reply to How do I find difference between two timestamps?

I'm new to programming, but can you convert them to epoch time, subtract them, then convert them back? Or is that inefficient?
  • Comment on Re: How do I find difference between two timestamps?

Replies are listed 'Best First'.
Re^2: How do I find difference between two timestamps?
by chb (Deacon) on Nov 17, 2004 at 09:17 UTC
    I'm not completly sure, but I think the epoch counts seconds, so the OP's timestamps would lose their information on milliseconds during the conversion.
Re^2: How do I find difference between two timestamps?
by ikegami (Patriarch) on Nov 16, 2004 at 23:31 UTC
    That's what all the previously mentioned modules do. It's not a question of efficiency, it's a question of necessity.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found