Module ActiveSupport::CoreExtensions::Time::Conversions
In: lib/active_support/core_ext/time/conversions.rb

Getting times in different convenient string representations and other objects

Methods

Constants

DATE_FORMATS = { :db => "%Y-%m-%d %H:%M:%S", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M", :rfc822 => "%a, %d %b %Y %H:%M:%S %z"

Public Class methods

Public Instance methods

To be able to keep Dates and Times interchangeable on conversions

[Validate]