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