Method: Date#month

Defined in:
date_core.c

#monInteger

Returns the month in range (1..12):

Date.new(2001, 2, 3).mon # => 2

Returns:

  • (Integer)


5333
5334
5335
5336
5337
5338
# File 'date_core.c', line 5333

static VALUE
d_lite_mon(VALUE self)
{
    get_d1(self);
    return INT2FIX(m_mon(dat));
}