class
Time
v3.0.0 -
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 = { :db => "%Y-%m-%d %H:%M:%S", :number => "%Y%m%d%H%M%S", :time => "%H:%M", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M", :long_ordinal => lambda { |time| time.strftime("%B #{ActiveSupport::Inflector.ordinalize(time.day)}, %Y %H:%M") }, :rfc822 => lambda { |time| time.strftime("%a, %d %b %Y %H:%M:%S #{time.formatted_offset(false)}") }
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