From: nobu.nokada@... Date: 2003-05-17T09:05:18+09:00 Subject: Re: need help with timestamping Hi, At Sat, 17 May 2003 03:49:20 +0900, Daniel Bretoi wrote: > I want to write a timestamp to a file, then read it in, and get a time > object again. I often use Time#to_i and Time.at. a = Time.now file.puts a.to_i b = Time.at(file.gets.to_i) 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) -- Nobu Nakada