= private = protected
today(sg=ITALY)
Create a new Date object representing today.
sg specifies the Day of Calendar Reform.
# File lib/date.rb, line 1795 def self.today(sg=ITALY) t = Time.now jd = civil_to_jd(t.year, t.mon, t.mday, sg) new!(jd_to_ajd(jd, 0, 0), 0, 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