APIdock / Ruby on Rails
/
Browse About
method

past?

rails latest stable - Class: Date

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

past?()
public

Returns true if the Date object’s date lies in the past. Otherwise returns false.

# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 46
  def past?
    self < ::Date.current
  end

Related methods

  • Instance methods
  • +
  • -
  • >>
  • acts_like_date?
  • advance
  • ago
  • as_json
  • at_beginning_of_day
  • 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
  • at_midnight
  • beginning_of_day
  • beginning_of_month
  • beginning_of_quarter
  • beginning_of_week
  • beginning_of_year
  • change
  • days_to_week_start
  • default_inspect
  • end_of_day
  • end_of_month
  • end_of_quarter
  • end_of_week
  • end_of_year
  • freeze
  • future?
  • in
  • inspect
  • iso8601
  • midnight
  • minus_with_duration
  • minus_without_duration
  • monday
  • months_ago
  • months_since
  • next_month
  • next_week
  • next_year
  • past?
  • plus_with_duration
  • plus_without_duration
  • prev_month
  • prev_week
  • prev_year
  • readable_inspect
  • rfc3339
  • since
  • sunday
  • to_date
  • to_datetime
  • to_default_s
  • to_formatted_s
  • to_s
  • to_time
  • to_time_in_current_zone
  • today?
  • tomorrow
  • weeks_ago
  • xmlschema
  • years_ago
  • years_since
  • yesterday
  • Class methods
  • current
  • tomorrow
  • yesterday
APIdock API Documentation Browser

© 2026 APIdock