Ruby: convert int to time?

Posted by scalalala on Stack Overflow See other posts from Stack Overflow or by scalalala
Published on 2010-05-20T06:12:35Z Indexed on 2010/05/20 6:20 UTC
Read the original article Hit count: 215

Filed under:
|

We can do this:

i = Time.now.to_i 

for example current:

i = 1274335854

can I convert i back to time?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about time