dayOfGregorianCal

The Xth day of the Gregorian Calendar that this Date is on.

  1. int dayOfGregorianCal [@property getter]
    @property const @safe pure nothrow @nogc
    int
    dayOfGregorianCal
    ()
  2. void dayOfGregorianCal [@property getter]

Examples

assert(Date(1, 1, 1).dayOfGregorianCal == 1);
assert(Date(1, 12, 31).dayOfGregorianCal == 365);
assert(Date(2, 1, 1).dayOfGregorianCal == 366);

assert(Date(0, 12, 31).dayOfGregorianCal == 0);
assert(Date(0, 1, 1).dayOfGregorianCal == -365);
assert(Date(-1, 12, 31).dayOfGregorianCal == -366);

assert(Date(2000, 1, 1).dayOfGregorianCal == 730_120);
assert(Date(2010, 12, 31).dayOfGregorianCal == 734_137);

Meta