Union
DateTime
union struct DateTime
Module: System.Time
Assembly: System.Runtime.dll
Source file: DateTime.rvn
Inheritance: Object → ValueType → DateTime
A civil value without a zone, or a resolved value retaining named zone rules.
Constructors
2 items
DateTime(value: LocalDateTime)
Creates the LocalDateTime alternative.
DateTime(value: ZonedDateTime)
Creates the ZonedDateTime alternative.
Properties
2 items
HasValue: bool
A civil value without a zone, or a resolved value retaining named zone rules.
Value: object?
A civil value without a zone, or a resolved value retaining named zone rules.
Methods
6 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
A civil value without a zone, or a resolved value retaining named zone rules.
Overrides Object.ToString
TryGetValue(value: out LocalDateTime) -> bool
Tries to extract the LocalDateTime alternative.
TryGetValue(value: out ZonedDateTime) -> bool
Tries to extract the ZonedDateTime alternative.