From: Madhusudhan H R on
Hello,

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.

Regards,
Madhusudhan.
--
Posted via http://www.ruby-forum.com/.

From: Brian Candler on
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/.

From: Madhusudhan H R on
Thank you.

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