From: Michael McDaniel Date: 2002-04-02T01:30:23+09:00 Subject: Re: Timezone name -> UTC hour offset? Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Timezone name -> UTC hour offset?" > on 02/04/01, Michael McDaniel writes: > > |I couldn't figure out how to convert seconds back to a Time object (e.g. > |t.to_f returns seconds as Float since the epoch (or t.to_i for Integer), > |but no way I know to convert that Float (or Integer) value back to a Time > |object or date string (e.g. in Tcl 'clock format [clock seconds]' returns > |the present date ('clock seconds' returns #seconds since the epoch)). > > Time.at(float) > > matz. ^^^^^^^^^^^^^^^^^^ Thank you Matz! and also thank you for ruby! I did not read the fine print well enough and now I have (goat book, pg 106, first Time method, fine print)! So, Sean, maybe work in seconds only and do a final conversion back to Time object only when you need it. ~mm