Table of Contents

Class S124DateRange

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

A validity range from a fixedDateRange complex attribute. Either end may be open.

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

Remarks

Edition 2.0.0 gives each end as a date (dateStart, dateEnd) and an optional UTC time of day (timeOfDayStart, timeOfDayEnd); a date without a time is the start of that day. Edition 1.0.0 datasets may give a date or a date-time.

Constructors

S124DateRange(DateTimeOffset?, DateTimeOffset?)

A validity range from a fixedDateRange complex attribute. Either end may be open.

public S124DateRange(DateTimeOffset? Start, DateTimeOffset? End)

Parameters

Start DateTimeOffset?

The start (UTC), or null when open.

End DateTimeOffset?

The end (UTC), or null when open.

Remarks

Edition 2.0.0 gives each end as a date (dateStart, dateEnd) and an optional UTC time of day (timeOfDayStart, timeOfDayEnd); a date without a time is the start of that day. Edition 1.0.0 datasets may give a date or a date-time.

Properties

End

The end (UTC), or null when open.

public DateTimeOffset? End { get; init; }

Property Value

DateTimeOffset?

Start

The start (UTC), or null when open.

public DateTimeOffset? Start { get; init; }

Property Value

DateTimeOffset?

Methods

Contains(DateTimeOffset)

Whether time falls in the range (both ends inclusive).

public bool Contains(DateTimeOffset time)

Parameters

time DateTimeOffset

The time.

Returns

bool

true when inside.