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