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,

···

--
Posted via http://www.ruby-forum.com/.

Subtract?

<http://rdoc.info/stdlib/date/1.9.2/frames&gt;http://rdoc.info/stdlib/date/1.9.2/Date:-

-Justin

···

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

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,