Date

struct Date

Calendar date without a time of day or offset.

Remarks

Valid dates use year 1..9999, month 1..12, and a valid day for the selected month.

Instance fields

byte

Day-of-month component.

byte

Month component.

ushort

Year component.

Instance members

Date
int

Gets whole calendar days from this date until another date.

nuint
format(const this, overload char[] buffer)
ascribes CharFormatteroverload

Formats this date as YYYY-MM-DD.

byte

Gets the number of days in this date's month.

bool

Returns true when this date's year is a leap year.

Weekday
getWeekday()
property

Gets the weekday for this date.

bool

Returns true when this date has valid calendar fields.

Static members

const Date

Invalid date sentinel.

Date

Gets the current system civil date.

Generated with campc v0.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.