Mike Nospam wrote in post #157814:
> Muchas gracias. I'll RTFM closer...
>
>> irb(main):001:0> Time.at( 1161275493444 / 1000 )
>> => Thu Oct 19 10:31:33 -0600 2006
>>
>> Time#at takes its argument as the number of seconds since the epoch, not
>> milliseconds.
>>
>> You were close! :)

Then, how to convert datetime to milliseconds in rails?

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