DateTime

struct DateTime

Calendar date and time with no attached UTC offset.

Remarks

A DateTime is not an Instant by itself and should not be described as local time unless a separate offset or time-zone rule gives it that meaning.

Lifecycle members

Instance fields

Date

Date component.

TimeOfDay

Time-of-day component.

Instance members

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

Formats this value as ISO date-time text.

bool

Returns true when both the date and time components are valid.

Instant

Converts this date and time to an instant using a fixed UTC offset.

Static members

const DateTime

Invalid date-time sentinel.

DateTime

Gets the current system civil date and time with no attached offset.

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