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