Struct CalendarSpan
A span of calendar and clock units, as Spans() draws it: one count per unit, each kept as drawn rather than folded into the next (13 months stay 13 months). .NET has no such type of its own: a TimeSpan is an exact length of time and has no months or years.
public readonly record struct CalendarSpan : IEquatable<CalendarSpan>
- Implements
- Inherited Members
Properties
Days
The days.
public long Days { get; init; }
Property Value
Hours
The hours.
public long Hours { get; init; }
Property Value
Microseconds
The microseconds.
public long Microseconds { get; init; }
Property Value
Milliseconds
The milliseconds.
public long Milliseconds { get; init; }
Property Value
Minutes
The minutes.
public long Minutes { get; init; }
Property Value
Months
The months.
public long Months { get; init; }
Property Value
Nanoseconds
The nanoseconds.
public long Nanoseconds { get; init; }
Property Value
Seconds
The seconds.
public long Seconds { get; init; }
Property Value
Weeks
The weeks.
public long Weeks { get; init; }
Property Value
Years
The years.
public long Years { get; init; }
Property Value
Methods
ToString()
The engine's text for the value: its units that are not zero, such as 1y 2mo 3d, each signed when their signs differ (+1y -3d), and 0s for the zero span.
public override string ToString()