From: Brian Candler Date: 2010-04-07T21:24:13+09:00 Subject: Re: How to convert a float into time Madhusudhan H R wrote: > I am querying from the database which is storing time in double format. > I need to convert this to time format. I was able to convert time into > float but not able to convert the float into time format. $ irb --simple-prompt >> now = Time.now.to_f => 1270643035.04671 >> Time.at(now) => Wed Apr 07 13:23:55 +0100 2010 >> -- Posted via http://www.ruby-forum.com/.