From: Daniel Bretoi Date: 2003-05-18T04:34:54+09:00 Subject: Re: need help with timestamping On Sat, May 17, 2003 at 09:12:25AM +0900, nobu.nokada@softhome.net wrote: > At Sat, 17 May 2003 09:05:18 +0900, > nobu.nokada@softhome.net wrote: > > When readability is prior to simpleness, Time#to_s and > > Time.parse. > > > > a = Time.now > > file.puts a > > > > require 'time' > > b = Time.at(file.gets) > > Sorry, this should be `Time.parse(file.gets)', of course. Hi and thank you. Your previous worked just excellent :) [~]$ irb irb(main):001:0> a = Time.now => Sat May 17 16:14:42 EDT 2003 irb(main):002:0> b = a.to_i => 1053202482 irb(main):003:0> c = Time.at b => Sat May 17 16:14:42 EDT 2003 > > -- > Nobu Nakada -- May 17 24" rain in 11 hours, Pearl River, S. China, 1982 May 17 Six SLA members killed in televised gun fight, 1974 May 17 Constitution Day in Nauru and Norway May 17* Armed Forces Day (3rd Saturday of May) May 17* Erev Shavout