Class
TimeZone
class TimeZone
Module: System.Time
Assembly: System.Runtime.dll
Source file: TimeZone.rvn
Inheritance: Object → TimeZone
Implements: EquatableTo<TimeZone>
Named IANA rules, separate from culture, calendar and the system clock.
Properties
5 items
Static member:
DatabaseVersion: string
Bundled IANA database version (2025b); not a claim of newest rules.
Id: string
Requested case-sensitive IANA identifier or alias.
MaxYear: int
Last supported year, 2099, in both UTC and local projections.
MinYear: int
First supported year, 1900, in both UTC and local projections.
Static member:
Utc: TimeZone
UTC named zone; same 1900–2099 conversion range as other named zones.
Methods
10 items
AtInstant(instant: Instant) -> Result<ZonedDateTime, TimeZoneError>
Resolves an instant in this named zone.
Equals(other: TimeZone) -> bool
Compares requested case-sensitive identifiers in the immutable bundled rule database. Aliases remain distinct named zones even when their current rules coincide.
Implements EquatableTo<TimeZone>.Equals
Equals(other: object?) -> bool
Compares named-zone values; null and other types are unequal.
Overrides Object.Equals
Static member:
Find(id: string) -> Result<TimeZone, TimeZoneError>
Looks up a bundled IANA zone or alias.
GetHashCode() -> int
Hashes zone identity without allocating encoded text or querying rules.
Overrides Object.GetHashCode
Static member:
GetSystem() -> Result<TimeZone, TimeZoneError>
Reads the system's IANA name; no silent UTC fallback.
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
GetUtcOffset(instant: Instant) -> Result<TimeOffset, TimeZoneError>
Gets the actual offset at an instant.
MapLocal(local: LocalDateTime) -> Result<LocalTimeMapping, TimeZoneError>
Reports overlap candidates in increasing instant order; never chooses or shifts.
ToString() -> string
Returns the original IANA identifier, not localized display text.
Overrides Object.ToString