Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I find difference between two timestamps?

by Diakoneo (Beadle)
on Nov 16, 2004 at 18:42 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-01-21 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (59 votes). Check out past polls.

    Notices?