Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

ZonedDateTime

class ZonedDateTime

Module: System.Time
Assembly: System.Runtime.dll
Source file: ZonedDateTime.rvn

Inheritance: Object → ZonedDateTime
Implements: EquatableTo<ZonedDateTime>

An immutable resolved instant and its projection under a named zone's rules.

Properties

4 items
Instant: Instant Resolved absolute point on the timeline.
LocalDateTime: LocalDateTime Gregorian civil Date and Time at the resolved instant.
Offset: TimeOffset Actual TimeOffset at this instant, including any daylight-saving adjustment.
Zone: TimeZone Named rules retained by the projection.

Methods

7 items
Static member: Create(instant: Instant, zone: TimeZone) -> Result<ZonedDateTime, TimeZoneError> Validates and resolves an instant in a named zone.
Equals(other: ZonedDateTime) -> bool Compares the same instant in the same named zone. Use Instant for timeline-only equality. Local fields and offset are deterministic projections under the fixed bundled rules. Implements EquatableTo<ZonedDateTime>.Equals
Equals(other: object?) -> bool Compares zoned values; null and other types are unequal. Overrides Object.Equals
GetHashCode() -> int Combines instant and named-zone hashes without allocating wrappers or formatted strings. Overrides Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Static member: Parse(value: string, zone: TimeZone) -> Result<ZonedDateTime, DateTimeParseError> Parses an explicit-offset invariant timestamp and validates it against the supplied named zone.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString