Flowdock
cwyear() public

Returns the calendar week based year.

For example:

Date.new(2001,2,3).cwyear         #=> 2001
Date.new(2000,1,1).cwyear         #=> 1999
Show source
Register or log in to add new notes.