The OpenD Programming Language

DateTime.month

Month of a Gregorian Year.

  1. Month month [@property getter]
    struct DateTime
    @property const @safe pure nothrow @nogc
    month
    ()
  2. Month month [@property setter]

Examples

assert(DateTime(Date(1999, 7, 6), TimeOfDay(9, 7, 5)).month == 7);
assert(DateTime(Date(2010, 10, 4), TimeOfDay(0, 0, 30)).month == 10);
assert(DateTime(Date(-7, 4, 5), TimeOfDay(7, 45, 2)).month == 4);

Meta