Method: DateTime#second
- Defined in:
- ext/date/date_core.c
#sec ⇒ Fixnum #second ⇒ Fixnum
Returns the second (0-59).
DateTime.new(2001,2,3,4,5,6).sec #=> 6
5365 5366 5367 5368 5369 5370 |
# File 'ext/date/date_core.c', line 5365 static VALUE d_lite_sec(VALUE self) { get_d1(self); return INT2FIX(m_sec(dat)); } |