gregorian?

d.gregorian? â bool
Instance Public methods

Retunrs true if the date is on or after the day of calendar reform.

Date.new(1582,10,15).gregorian?          #=> true
(Date.new(1582,10,15) - 1).gregorian?    #=> false
doc_ruby_on_rails
2015-04-02 13:41:12
Comments
Leave a Comment

Please login to continue.