From: Ryan Davis Date: 2007-03-12T10:05:22+09:00 Subject: Re: new Date from Time.now().to_a On Mar 11, 2007, at 6:02 PM, Aaron Smith wrote: > I don't see any obvious ways of making a new Date object based off of > what Time.now rerurns. I'm ultimately trying to make a new Date from > milliseconds: > > tn = Time.now > ms = ("%.6f" % tn.to_f) #this would ultimately be comming from another > source > nd = Time.at( ms.to_f / 1000.0 ) > puts nd.to_a.inspect Remember, ri is your friend�. % ri Date::civil ------------------------------------------------------------ Date::civil Date::civil(y=-4712, m=1, d=1, sg=ITALY) ------------------------------------------------------------------------