Date.isAD

Whether the current year is a date in A.D.

struct Date
@property const @safe pure nothrow @nogc
bool
isAD
()

Examples

assert(Date(1, 1, 1).isAD);
assert(Date(2010, 12, 31).isAD);
assert(!Date(0, 12, 31).isAD);
assert(!Date(-2010, 1, 1).isAD);

Meta