Method: Time#mday

Defined in:
time.c

#dayInteger #mdayInteger

Returns the day of the month (1..31) for time.

t = Time.now   #=> 2007-11-19 08:27:03 -0600
t.day          #=> 19
t.mday         #=> 19

Overloads:

[View source]

4497
4498
4499
4500
4501
4502
4503
4504
4505
# File 'time.c', line 4497

static VALUE
time_mday(VALUE time)
{
    struct time_object *tobj;

    GetTimeval(time, tobj);
    MAKE_TM(time, tobj);
    return INT2FIX(tobj->vtm.mday);
}