Ruby / Rails: convert int to time OR get time from integer?

Use Time.at:

t = Time.at(i)

Leave a Comment