Flowdock
year() public

Returns the year.

Date.new(2001,2,3).year           #=> 2001
(Date.new(1,1,1) - 1).year        #=> 0
Show source
Register or log in to add new notes.