From: Madhusudhan H R on 7 Apr 2010 08:04 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 7 Apr 2010 08:24 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 7 Apr 2010 10:06 Thank you. -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: UML Diagrams Next: modifying a Hash in one process when .each is running in another |