YearMonth

Year and Month.

If month is specified we probably aren't interested in years before 0 so store only years 0 .. 2^12-1 (4095). This makes this struct fit in 2 bytes.

Constructors

this
this(int year, Month month)
Undocumented in source.
this
this(const(char)[] s)
Undocumented in source.

Destructor

~this
~this()

No explicit destruction needed.

Members

Aliases

ThisUnsigned
alias ThisUnsigned = short
Undocumented in source.

Functions

opCmp
int opCmp(typeof(this) that)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
hash_t toHash()
Undocumented in source.

Properties

month
Month month [@property getter]
Undocumented in source.
toString
string toString [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
year
ushort year [@property getter]
Undocumented in source.

Meta