The OpenD Programming Language

SysTime.month

Month of a Gregorian Year.

  1. Month month [@property getter]
    struct SysTime
    @property @safe const nothrow scope
    month
    ()
  2. Month month [@property setter]

Examples

import std.datetime.date : DateTime;

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

Meta