instance method
today
Ruby on Rails 5.2.8.1
Since v2.2.3Signature
today()
Returns the current date in this time zone.
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 483
def today
tzinfo.now.to_date
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 483
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone