Type:
Module
Constants:
DAYS_INTO_WEEK : { :monday => 0, :tuesday => 1, :wednesday => 2, :thursday => 3, :friday => 4, :saturday => 5, :sunday => 6 }
at_beginning_of_week
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

at_beginning_of_week(start_day = Date.beginning_of_week) Instance Public methods Alias

2025-01-10 15:47:30
beginning_of_year
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

beginning_of_year() Instance Public methods Return a new date/time at the beginning

2025-01-10 15:47:30
months_since
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

months_since(months) Instance Public methods Returns a new date/time the specified

2025-01-10 15:47:30
next_quarter
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

next_quarter() Instance Public methods Short-hand for

2025-01-10 15:47:30
weeks_ago
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

weeks_ago(weeks) Instance Public methods Returns a new date/time the specified

2025-01-10 15:47:30
at_beginning_of_quarter
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

at_beginning_of_quarter() Instance Public methods Alias for:

2025-01-10 15:47:30
end_of_week
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

end_of_week(start_day = Date.beginning_of_week) Instance Public methods Returns

2025-01-10 15:47:30
end_of_month
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

end_of_month() Instance Public methods Returns a new date/time representing

2025-01-10 15:47:30
future?
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

future?() Instance Public methods Returns true if the date/time is in the future

2025-01-10 15:47:30
prev_week
  • References/Ruby on Rails/Rails/Classes/DateAndTime/DateAndTime::Calculations

prev_week(start_day = Date.beginning_of_week) Instance Public methods Returns

2025-01-10 15:47:30