http://qs1969.pair.com?node_id=408202


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.