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 } }
eql_without_coercion
  • References/Ruby on Rails/Rails/Classes/Time

eql_without_coercion(other) Instance Public methods Alias for:

2025-01-10 15:47:30
at
  • References/Ruby on Rails/Rails/Classes/Time

at(*args) Class Public methods Also aliased as:

2025-01-10 15:47:30
days_in_month
  • References/Ruby on Rails/Rails/Classes/Time

days_in_month(month, year = now.year) Class Public methods Return the number

2025-01-10 15:47:30
eql_with_coercion
  • References/Ruby on Rails/Rails/Classes/Time

eql_with_coercion(other) Instance Public methods Layers additional behavior

2025-01-10 15:47:30
to_formatted_s
  • References/Ruby on Rails/Rails/Classes/Time

to_formatted_s(format = :default) Instance Public methods Converts to a formatted

2025-01-10 15:47:30
midnight
  • References/Ruby on Rails/Rails/Classes/Time

midnight() Instance Public methods Alias for:

2025-01-10 15:47:30
compare_with_coercion
  • References/Ruby on Rails/Rails/Classes/Time

compare_with_coercion(other) Instance Public methods Layers additional behavior

2025-01-10 15:47:30
eql?
  • References/Ruby on Rails/Rails/Classes/Time

eql?(other) Instance Public methods Also aliased as:

2025-01-10 15:47:30