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)
How do you define the method to_time? Doesn’t seem to be any built-ins, even though I find that odd. Nothing in class Integer, Float, or Fixnum - and nothing in ParseDate about “seconds since epoch” or integers and such.
David Douthitt
CUNA & Affiliates
UNIX Systems Administrator
ddouthitt@cuna.coop
(608) 231-4922