Flowdock
year() public

Returns the year for time (including the century).

t = Time.now   #=> 2007-11-19 08:27:51 -0600
t.year         #=> 2007
Show source
Register or log in to add new notes.