From: David Alan Black Date: 2002-07-23T07:15:22+09:00 Subject: Re: Time Conversion Hi -- On Tue, 23 Jul 2002, Harry Ohlsen wrote: > On Tue, 23 Jul 2002 07:52, David Douthitt wrote: > > How do I convert an integer to a time and date? Specifically, given: > > > > t = File.mtime(x).to_i > > > > I want to be able to: > > > > printf("%s\n", t.to_time) > > Look at Time.at(). In your case, I think this should work ... > > printf "%s\n", Time.at(t) Digressing slightly from the question, but I'd put in a plug for: puts Time.at(t) :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav