Struct
TimeOffset
struct TimeOffset
Module: System.Time
Assembly: System.Runtime.dll
Source file: TimeOffset.rvn
Inheritance: Object → ValueType → TimeOffset
Implements: ComparableTo<TimeOffset>, EquatableTo<TimeOffset>
A fixed UTC displacement in whole seconds, independent of zone rules.
Properties
2 items
Seconds: int
Signed total offset seconds east of UTC.
Static member:
Zero: TimeOffset
Zero UTC displacement.
Methods
10 items
AtInstant(instant: Instant) -> Result<LocalDateTime, InvalidDateError>
Projects to the civil range 0001-01-01 through 9999-12-31.
CompareTo(other: TimeOffset) -> int
Orders by total offset seconds.
Implements ComparableTo<TimeOffset>.CompareTo
Equals(other: TimeOffset) -> bool
Compares total offset seconds.
Implements EquatableTo<TimeOffset>.Equals
Equals(other: object?) -> bool
Compares the complete value with a boxed TimeOffset; null and other types are unequal.
Overrides Object.Equals
Static member:
FromSeconds(seconds: int) -> Result<TimeOffset, InvalidTimeError>
Validates a fixed UTC displacement.
GetHashCode() -> int
Returns an execution-local value hash consistent with equality; not a persistent identifier.
Overrides Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Parse(value: string) -> Result<TimeOffset, DateTimeParseError>
Parses Z or signed HH:mm[:ss], within the existing inclusive ±18-hour range.
ToInstant(local: LocalDateTime) -> Instant
Converts civil fields using this fixed offset.
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