From: Shashank Date Date: 2003-05-17T08:02:08+09:00 Subject: Re: Time.ascset "Daniel Bretoi" wrote in message news:20030516181605.GM94447@zone.syracuse.net... > Is ther esomething like, > > a = Time.ascset("Thu May 15 15:16:53 2003") ? You mean this: a = Time.now.asctime p a #=> "Fri May 16 17:37:01 2003" Or this: require 'parsedate' a = ParseDate::parsedate("Thu May 15 15:16:53 2003") a.pop t = Time.mktime(*a) p t #=> Thu May 15 15:16:53 Central Daylight Time 2003 I am not sure what you want. > Also, how do I ge tthe epoch time from a time object? a = Time.at(0) p a # =>Wed Dec 31 18:00:00 Central Standard Time 1969