search for: difference_in_time_in_word

Displaying 1 result from an estimated 1 matches for "difference_in_time_in_word".

2006 Mar 29
2
distance_of_time_in_words and Time classes
There is <%= distance_of_time_in_words(Time.now, @a_time) %> before xzy.<BR /> <!-- ^ this gives 2279 days --> This does not work because when @a_time is stored, even though it is a Time field and the class is Time, it includes a date. The Date isn''t even that days date its the year 2000, hence the 2279 days ago. So how do I set the date part of @a_time (a Time