class

Time

v3.0.9 - Show latest stable - Superclass: Object

No documentation available for this class.

Constants

COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

DATE_FORMATS = {\n:db => "%Y-%m-%d %H:%M:%S",\n:number => "%Y%m%d%H%M%S",\n:time => "%H:%M",\n:short => "%d %b %H:%M",\n:long => "%B %d, %Y %H:%M",\n:long_ordinal => lambda { |time| time.strftime("%B #{ActiveSupport::Inflector.ordinalize(time.day)}, %Y %H:%M") },\n:rfc822 => lambda { |time| time.strftime("%a, %d %b %Y %H:%M:%S #{time.formatted_offset(false)}") }\n}

DAYS_INTO_WEEK = { :monday => 0, :tuesday => 1, :wednesday => 2, :thursday => 3, :friday => 4, :saturday => 5, :sunday => 6 }

Attributes

[RW]zone_default

Files

  • activesupport/lib/active_support/core_ext/time/acts_like.rb
  • activesupport/lib/active_support/core_ext/time/calculations.rb
  • activesupport/lib/active_support/core_ext/time/conversions.rb
  • activesupport/lib/active_support/core_ext/time/marshal.rb
  • activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb
  • activesupport/lib/active_support/core_ext/time/zones.rb
  • activesupport/lib/active_support/json/encoding.rb