Table of Contents

Struct CalendarSpan

Namespace
Hegel.Temporal
Assembly
Hegel.dll

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

long

Hours

The hours.

public long Hours { get; init; }

Property Value

long

Microseconds

The microseconds.

public long Microseconds { get; init; }

Property Value

long

Milliseconds

The milliseconds.

public long Milliseconds { get; init; }

Property Value

long

Minutes

The minutes.

public long Minutes { get; init; }

Property Value

long

Months

The months.

public long Months { get; init; }

Property Value

long

Nanoseconds

The nanoseconds.

public long Nanoseconds { get; init; }

Property Value

long

Seconds

The seconds.

public long Seconds { get; init; }

Property Value

long

Weeks

The weeks.

public long Weeks { get; init; }

Property Value

long

Years

The years.

public long Years { get; init; }

Property Value

long

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()

Returns

string