time.year â fixnum
Instance Public methods
Returns the year for time (including the century).
1 2 | t = Time .now #=> 2007-11-19 08:27:51 -0600 t.year #=> 2007 |
Returns the year for time (including the century).
1 2 | t = Time .now #=> 2007-11-19 08:27:51 -0600 t.year #=> 2007 |
Designed by : w10schools
service@w10schools.com
Please login to continue.