Table of Contents

Struct TimeRange

Namespace
EncDotNet.S100.Datasets.Pipelines.Catalog
Assembly
EncDotNet.S100.Datasets.Pipelines.dll

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

Start DateTimeOffset

Inclusive start of the dataset's declared time range (UTC).

End DateTimeOffset

Inclusive 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

DateTimeOffset

Start

Inclusive start of the dataset's declared time range (UTC).

public DateTimeOffset Start { get; init; }

Property Value

DateTimeOffset

Methods

Contains(DateTimeOffset)

Returns true when the range contains instant (inclusive).

public bool Contains(DateTimeOffset instant)

Parameters

instant DateTimeOffset

Returns

bool