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

all_day() Instance Public methods Returns a

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

at_noon() Instance Public methods Alias for:

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

seconds_until_end_of_day() Instance Public methods Returns the number of seconds

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

minus_without_coercion(other) Instance Public methods Alias for:

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

since(seconds) Instance Public methods Returns a new

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

_load(marshaled_time) Class Public methods Also aliased as:

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

end_of_hour() Instance Public methods Returns a new

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

find_zone!(time_zone) Class Public methods Returns a TimeZone instance or nil

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

beginning_of_day() Instance Public methods Returns a new

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

midday() Instance Public methods Alias for:

2025-01-10 15:47:30