From: ahoward Date: 2003-05-17T04:41:49+09:00 Subject: Re: need help with timestamping On Sat, 17 May 2003, Daniel Bretoi wrote: check out the parsedate module - it's in the pickaxe. -a > Hi, > > I want to write a timestamp to a file, then read it in, and get a time > object again. > > I've useusally done this with something like, epoch times > > a Time.now > file.puts a.epoch > > .. > > f = file.read > b = mktime(f) > > but I can't seem to find a native way of doing this. > > is there? > > db > > > -- > May 16 First report on SNOBOL distributed (within BTL), 1963 > May 17 24" rain in 11 hours, Pearl River, S. China, 1982 > May 17 Six SLA members killed in televised gun fight, 1974 > May 18 Battle of Las Piedras in Uruguay > May 18 Napoleon crowned Emperor, 1804 > May 16 Discovery Day in Cayman Islands > May 17 Constitution Day in Nauru and Norway > May 18 Flag Day in Haiti > May 18 Prayer Day in Denmark > May 18 Rick Wakeman is born in West London, England, 1949 > May 17* Armed Forces Day (3rd Saturday of May) > May 16* Omer 49th day > May 17* Erev Shavout > May 18* Shavuot (Festival of Weeks; 50 days after Pesach) > May 18* Yizkor > > -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================