From: noreply@... Date: 2006-11-25T07:43:34+09:00 Subject: [ ruby-Bugs-6866 ] Create Dates from Times Bugs item #6866, was opened at 2006-11-24 23:43 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6866&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: David Welton (davidw) Assigned to: Nobody (None) Summary: Create Dates from Times Initial Comment: Perhaps I'm missing something, but wouldn't it be handy to have something like this? def Date.from_time(time) Date.civil(time.year, time.month, time.day) end I know I would find it useful for code like this: if Date.from_time(someday) < Date.from_time(anotherday) Where I want to compare two dates rather than two times. Thankyou, Dave ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6866&group_id=426