[Ruby] Unix timestamp to Time?

Laurel Fan laurel.fan at gmail.com
Tue Feb 27 13:45:34 PST 2007


On 2/27/07, John Wulff <johnwulff at gmail.com> wrote:
> Feeling pretty dumb not being able to figure this out.  I've got a
> vanilla unix timestamp that I need Ruby to give some love.  Any know
> how?

Time.at

See:
http://www.ruby-doc.org/core/classes/Time.html

When looking for core class documentation I google for ruby-doc
Whatever (eg. ruby-doc time).  If you just say ruby you'll often get
the 1.6 documentation

-- 
Laurel Fan
http://blog.gorgorg.org


More information about the Ruby mailing list