On 3/2/07, Geoff B <[EMAIL PROTECTED]> wrote: > > I've created another DateTime-related patch -- this one adding > DateTime::Calculations to ActiveSupport::CoreExtensions. > > This will allow you to call the same ActiveSupport methods available > for Time instances on DateTime instances, like beginning_of_day, > months_ago, monday, midnight, since, advance, seconds_since_midnight, > etc. Example: > > >> DateTime.now.since(3.hours).to_s(:long) > => "March 02, 2007 05:56" > > >> Time.now.since(3.hours).to_s(:long) > => "March 02, 2007 05:56" > > http://dev.rubyonrails.org/ticket/7693
Committed. Great work, Geoff. Thanks, jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
