instance method
yesterday
Ruby on Rails 6.1.7.10
Since v4.0.13Signature
yesterday()
Returns a new date/time representing yesterday.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 20
def yesterday
advance(days: -1)
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 20
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations