Method: Date#yday

Defined in:
date_core.c

#ydayInteger

Returns the day of the year, in range (1..366):

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

Returns:

  • (Integer)


5317
5318
5319
5320
5321
5322
# File 'date_core.c', line 5317

static VALUE
d_lite_yday(VALUE self)
{
    get_d1(self);
    return INT2FIX(m_yday(dat));
}