APIdock / Ruby on Rails
/
Browse About
module

DateAndTime::Calculations

v4.2.1 - Show latest stable

No documentation available for this module.

Constants

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

Files

  • activesupport/lib/active_support/core_ext/date_and_time/calculations.rb

Related methods

  • Instance methods
  • all_month
  • all_quarter
  • all_week
  • all_year
  • at_beginning_of_month
  • at_beginning_of_quarter
  • at_beginning_of_week
  • at_beginning_of_year
  • at_end_of_month
  • at_end_of_quarter
  • at_end_of_week
  • at_end_of_year
  • beginning_of_month
  • beginning_of_quarter
  • beginning_of_week
  • beginning_of_year
  • days_ago
  • days_since
  • days_to_week_start
  • end_of_month
  • end_of_quarter
  • end_of_week
  • end_of_year
  • future?
  • last_month
  • last_quarter
  • last_week
  • last_year
  • monday
  • months_ago
  • months_since
  • next_month
  • next_quarter
  • next_week
  • next_year
  • past?
  • prev_month
  • prev_quarter
  • prev_week
  • prev_year
  • sunday
  • today?
  • tomorrow
  • weeks_ago
  • weeks_since
  • years_ago
  • years_since
  • yesterday
  • Private methods
  • privatedays_span
  • privatefirst_hour
  • privatelast_hour
APIdock API Documentation Browser

Implement the SPACE framework the right way with Swarmia.

© 2026 APIdock