Struct TimeRange
An optional time interval associated with a loaded dataset.
public readonly record struct TimeRange : IEquatable<TimeRange>
- Implements
- Inherited Members
Remarks
Used for time-varying products such as S-104 water levels and S-111 surface currents. Static products (S-102) report no time range.
Constructors
TimeRange(DateTimeOffset, DateTimeOffset)
An optional time interval associated with a loaded dataset.
public TimeRange(DateTimeOffset Start, DateTimeOffset End)
Parameters
StartDateTimeOffsetInclusive start of the dataset's declared time range (UTC).
EndDateTimeOffsetInclusive end of the dataset's declared time range (UTC).
Remarks
Used for time-varying products such as S-104 water levels and S-111 surface currents. Static products (S-102) report no time range.
Properties
End
Inclusive end of the dataset's declared time range (UTC).
public DateTimeOffset End { get; init; }
Property Value
Start
Inclusive start of the dataset's declared time range (UTC).
public DateTimeOffset Start { get; init; }
Property Value
Methods
Contains(DateTimeOffset)
Returns true when the range contains instant (inclusive).
public bool Contains(DateTimeOffset instant)
Parameters
instantDateTimeOffset