method
today
v2_5_5 -
Show latest stable
- Class:
Date
today(p1 = v1)public
1Note
Warning! Be aware of Active Record TimeZone
With the timezone support introduced in Rails 2.1 the idea is that all dates in the database are stored in UTC and all dates in Ruby are in a local timezone.
Time.zone.now == Time.now # => false