Table of Contents

Class S122DateRange

Namespace
EncDotNet.S100.Datasets.S122.DataModel
Assembly
EncDotNet.S100.Datasets.S122.dll

A fixedDateRange or periodicDateRange complex attribute (S-122 FC 2.0.0 §fixedDateRange, §periodicDateRange): start and end dates as S100_TruncatedDate text.

public sealed record S122DateRange : IEquatable<S122DateRange>
Inheritance
S122DateRange
Implements
Inherited Members

Remarks

Dates keep their source text because a truncated date need not be a full date: a periodic range usually names a day of the year without a year (--03-01). Start and End give the UTC moments when the text is a full date.

Constructors

S122DateRange(string?, string?)

A fixedDateRange or periodicDateRange complex attribute (S-122 FC 2.0.0 §fixedDateRange, §periodicDateRange): start and end dates as S100_TruncatedDate text.

public S122DateRange(string? DateStart, string? DateEnd)

Parameters

DateStart string

The dateStart text, when present.

DateEnd string

The dateEnd text, when present.

Remarks

Dates keep their source text because a truncated date need not be a full date: a periodic range usually names a day of the year without a year (--03-01). Start and End give the UTC moments when the text is a full date.

Properties

DateEnd

The dateEnd text, when present.

public string? DateEnd { get; init; }

Property Value

string

DateStart

The dateStart text, when present.

public string? DateStart { get; init; }

Property Value

string

End

The start of DateEnd (UTC) when it is a full date, else null.

public DateTimeOffset? End { get; }

Property Value

DateTimeOffset?

Start

The start of DateStart (UTC) when it is a full date, else null.

public DateTimeOffset? Start { get; }

Property Value

DateTimeOffset?