The OpenD Programming Language

Date.dayOfYear

Day of the year this Date is on.

  1. ushort dayOfYear [@property getter]
    struct Date
    @property const @safe pure nothrow @nogc
    ushort
    dayOfYear
    ()
  2. int dayOfYear [@property setter]

Examples

assert(Date(1999, 1, 1).dayOfYear == 1);
assert(Date(1999, 12, 31).dayOfYear == 365);
assert(Date(2000, 12, 31).dayOfYear == 366);

Meta