Type:
Class
Constants:
COMMON_YEAR_DAYS_IN_MONTH : [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
DATE_FORMATS : { :db => '%Y-%m-%d %H:%M:%S', :number => '%Y%m%d%H%M%S', :nsec => '%Y%m%d%H%M%S%9N', :time => '%H:%M', :short => '%d %b %H:%M', :long => '%B %d, %Y %H:%M', :long_ordinal => lambda { |time| day_format = ActiveSupport::Inflector.ordinalize(time.day) time.strftime("%B #{day_format}, %Y %H:%M") }, :rfc822 => lambda { |time| offset_format = time.formatted_offset(false) time.strftime("%a, %d %b %Y %H:%M:%S #{offset_format}") }, :iso8601 => lambda { |time| time.iso8601 } }
formatted_offset

formatted_offset(colon = true, alternate_utc_string = nil) Instance Public methods Returns

2015-06-20 00:00:00
<=>

<=>(other) Instance Public methods Also aliased as:

2015-06-20 00:00:00
at_with_coercion

at_with_coercion(*args) Class Public methods Layers additional behavior on

2015-06-20 00:00:00
advance

advance(options) Instance Public methods Uses

2015-06-20 00:00:00
zone

zone() Class Public methods Returns the TimeZone for the current request, if

2015-06-20 00:00:00
current

current() Class Public methods Returns Time.zone.now when Time

2015-06-20 00:00:00
_dump_without_zone

_dump_without_zone(*args) Instance Public methods Alias for:

2015-06-20 00:00:00
find_zone

find_zone(time_zone) Class Public methods

2015-06-20 00:00:00
beginning_of_minute

beginning_of_minute() Instance Public methods Returns a new

2015-06-20 00:00:00
to_default_s

to_default_s(format = :default) Instance Public methods Alias for:

2015-06-20 00:00:00