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

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.

nuint

Formats this value as ISO date-time text.

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.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.