sec() public

Returns the second of the minute (0..60)[Yes, seconds really can range from zero to 60. This allows the system to inject leap seconds every now and then to correct for the fact that years are not really a convenient number of hours long.] for time.

t = Time.now   #=> Wed Apr 09 08:56:04 CDT 2003
t.sec          #=> 4
Show source
Register or log in to add new notes.