We can do this:
i = Time.now.to_i
for example current:
i = 1274335854
can I convert i back to time?
We can do this:
i = Time.now.to_i
for example current:
i = 1274335854
can I convert i back to time?
Check this page:
http://andrewkortina.blogspot.com/2007/02/how-to-convert-integer-time-stamp-to.html
time.to_i => int
: Returns the value of time as an integer number of seconds since epoch.
Time.at(seconds[, microseconds]) => time:
Creates a new time object with the given number of seconds (and optional microseconds) from epoch.