From: Hugh Sasse Date: 2005-09-09T20:46:18+09:00 Subject: Re: File.mtime <=> DateTime.strptime() On Fri, 9 Sep 2005, Eric Hodel wrote: > > On 08 Sep 2005, at 11:11, Hugh Sasse wrote: > >> I'm trying to compare how new a file is with the header obtained >> from Net::HTTP.head(). I use >> >> STRFTIME_FORMAT = "%a, %d %b %Y %H:%M:%S GMT" >> timestamp = DateTime.strptime(lastmod, STRFTIME_FORMAT) > > require 'time' > timestamp = Time.parse lastmod [...] > Time.parse Just Works. :-) Yes, it does. Thank you. > Hugh