From: Harry Ohlsen Date: 2002-07-23T07:07:44+09:00 Subject: Re: Time Conversion 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)