Are these values seconds since epoch? If so:
irb(main):002:0> Time.at(1157489583.2798 - 64299600.0)
=> Sun Aug 22 09:53:03 MDT 2004
Regards,
Dan
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
···
-----Original Message-----
From: list-bounce@example.com
[mailto:list-bounce@example.com] On Behalf Of Brad Tilley
Sent: Tuesday, September 05, 2006 3:02 PM
To: ruby-talk ML
Subject: representing a span of timeSay I have two time objects represented as floats like so:
x = 64299600.0
y = 1157489583.2798I want to subtract x from y and then represent the difference
as years,
months, days, hours, minutes and seconds.I don't see how the Time library would do this. Has anyone done
something like this? If so, how?Thanks,
Brad