= private = protected
today(sg=ITALY)
Create a new Date object representing today.
sg specifies the Day of Calendar Reform.
# File lib/date.rb, line 1623 def self.today(sg=ITALY) Time.now.__send__(:to_date) .new_start(sg) end
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
http://marklunds.com/articles/one/402