SysTime.dayOfYear

Day of the year this SysTime is on.

  1. ushort dayOfYear [@property getter]
    struct SysTime
    @property @safe const nothrow scope
    ushort
    dayOfYear
    ()
  2. int dayOfYear [@property setter]

Examples

import core.time;
import std.datetime.date : DateTime;

assert(SysTime(DateTime(1999, 1, 1, 12, 22, 7)).dayOfYear == 1);
assert(SysTime(DateTime(1999, 12, 31, 7, 2, 59)).dayOfYear == 365);
assert(SysTime(DateTime(2000, 12, 31, 21, 20, 0)).dayOfYear == 366);

Meta