Struct
Instant
struct Instant
Module: System.Time
Assembly: System.Runtime.dll
Source file: Instant.rvn
Inheritance: Object → ValueType → Instant
Implements: ComparableTo<Instant>, EquatableTo<Instant>
An instant represented by signed 100-nanosecond ticks since the Unix epoch.
Remarks
UnixTimeTicks uses an epoch of 1970-01-01T00:00:00Z. ToLocalDateTime consults the host time-zone configuration; the result does not preserve an offset or zone identifier.
Properties
1 item
UnixTimeTicks: long
Gets signed 100-nanosecond ticks since the Unix epoch.
Methods
10 items
Add(duration: Duration) -> Result<Instant, OverflowError>
Adds exact elapsed time, independently of calendars and zones.
CompareTo(other: Instant) -> int
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Implements ComparableTo<Instant>.CompareTo
Equals(other: Instant) -> bool
Tests value equality with the other value.
Implements EquatableTo<Instant>.Equals
Equals(other: object?) -> bool
Compares the complete value with a boxed Instant; null and other types are unequal.
Overrides Object.Equals
Static member:
FromUnixTimeTicks(ticks: long) -> Instant
Creates an instant from signed 100-nanosecond ticks since the Unix epoch.
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<Instant, DateTimeParseError>
Parses invariant yyyy-MM-ddTHH:mm:ss[.fraction] followed by Z or ±HH:mm[:ss].
ToLocalDateTime() -> LocalDateTime
Converts this instant to host-local calendar and clock components.
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