Module: ActiveSupport::CoreExtensions::Time::Conversions

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

append_features to_date to_formatted_s to_time

### 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

append_features(klass)

### Public Instance methods

to_date()
to_formatted_s(format = :default)
to_time()

To be able to keep Dates and Times interchangeable on conversions

[Validate]