Calculate timing

How to calculate the time difference?

such as:
first time --> date: 20110918 time: 213456
(2011/09/18 21:34:56)
second time --> date : 20110919 time: 032411
(2011/09/19 03:24:11)

How to calculate the differ between first and second time with different
date?

Thanks,

On 09/12/2011 09:26 PM, CC Chen wrote:

Thanks,

Subtract?

http://rdoc.info/stdlib/date/1.9.2/frameshttp://rdoc.info/stdlib/date/1.9.2/Date:-

-Justin