Class S124DateRange
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
StartDateTimeOffset?The start (UTC), or
nullwhen open.EndDateTimeOffset?The end (UTC), or
nullwhen 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
Start
The start (UTC), or null when open.
public DateTimeOffset? Start { get; init; }
Property Value
Methods
Contains(DateTimeOffset)
Whether time falls in the range (both ends inclusive).
public bool Contains(DateTimeOffset time)
Parameters
timeDateTimeOffsetThe time.
Returns
- bool
truewhen inside.