OffsetDateTime

struct OffsetDateTime

Calendar date and time with a fixed UTC offset.

Remarks

This value can be converted to an Instant without named time-zone rules.

Lifecycle members

Instance fields

DateTime

Local date and time component.

UtcOffset

Fixed UTC offset component.

Instance members

bool

Returns true when the local date-time and offset components are valid.

Instant

Converts this value to an instant.

nuint

Formats this value as ISO offset date-time text.

Static members

const OffsetDateTime

Invalid offset date-time sentinel.

OffsetDateTime

Gets the current system civil date and time with the current system UTC offset.

OffsetDateTime

Gets the current UTC date and time.

Generated with campc v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.