Struct
LocalDateTime
struct LocalDateTime
Module: System.Time
Assembly: System.Runtime.dll
Source file: LocalDateTime.rvn
Inheritance: Object → ValueType → LocalDateTime
Implements: ComparableTo<LocalDateTime>, EquatableTo<LocalDateTime>, Formattable
A date and time expressed in the host local time zone, without retaining a zone identifier.
Properties
2 items
Date: Date
Gets the local calendar date.
Time: TimeOfDay
Gets the local time of day.
Methods
13 items
Add(duration: Duration) -> Result<LocalDateTime, InvalidDateError>
Civil arithmetic with day carry; it does not apply timezone transition rules.
CompareTo(other: LocalDateTime) -> int
Orders by date first, then complete tick of day; this does not compare instants.
Implements ComparableTo<LocalDateTime>.CompareTo
Static member:
Create(date: Date, time: TimeOfDay) -> LocalDateTime
Combines already validated civil values without selecting a zone or offset.
Equals(other: LocalDateTime) -> bool
Compares both civil fields, without applying a timezone or culture.
Implements EquatableTo<LocalDateTime>.Equals
Equals(other: object?) -> bool
Compares a boxed civil value; null and other types are unequal.
Overrides Object.Equals
GetHashCode() -> int
Combines the date and complete tick-of-day hashes; 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, culture: Culture) -> Result<LocalDateTime, DateTimeParseError>
Parses a supported numeric Gregorian value with an explicit culture.
Static member:
Parse(value: string) -> Result<LocalDateTime, DateTimeParseError>
Parses a supported numeric civil value using Culture.Current.
ToString(culture: Culture) -> string
Formats the civil date and time using an explicit culture.
ToString(format: string, culture: Culture) -> string
Formats with an explicit culture; unsupported specifiers fault. O/o is invariant.
Implements Formattable.ToString
ToString(format: string) -> string
Formats with Culture.Current; supported formats are documented by DateTimeFormat.FormatLocalDateTime.
ToString() -> string
Formats the civil date and time using Culture.Current, without an offset or zone.
Overrides Object.ToString