From: shawn bright Date: 2007-01-07T04:21:10+09:00 Subject: Re: how to get a time object from a date object ? ------=_Part_49497_12899203.1168111267524 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline cool thanks. all working now shawn On 1/6/07, Devin Mullins wrote: > > shawn bright wrote: > > lo there all, i have a date object, and i need to make a time object > from > > it. > > i tried the to_i, ( what i really need are the seconds ) but it failed. > > I am > > sure that there is an easy way to do this, i just can't seem to find it. > > Time.local(date.year, date.month, date.day) > > (Courtesy of > > http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Date/Conversions.html > , > actually.) > > ------=_Part_49497_12899203.1168111267524--