Class TimeQuery.Range
Closed time window [From, To]. For coverage samplers this
returns every dataset time-step whose TimePoint falls
within the window. For feature-validity filters this matches any
feature whose validity interval overlaps the window.
public sealed record TimeQuery.Range : TimeQuery, IEquatable<TimeQuery>, IEquatable<TimeQuery.Range>
- Inheritance
-
TimeQuery.Range
- Implements
- Inherited Members
Constructors
Range(DateTimeOffset, DateTimeOffset)
Closed time window [From, To]. For coverage samplers this
returns every dataset time-step whose TimePoint falls
within the window. For feature-validity filters this matches any
feature whose validity interval overlaps the window.
public Range(DateTimeOffset From, DateTimeOffset To)
Parameters
FromDateTimeOffsetWindow start (inclusive), normalised to UTC.
ToDateTimeOffsetWindow end (inclusive), normalised to UTC; must be >=
From.
Properties
Duration
Span of the window, always >= Zero.
public TimeSpan Duration { get; }
Property Value
From
Window start (inclusive), normalised to UTC.
public DateTimeOffset From { get; init; }
Property Value
To
Window end (inclusive), normalised to UTC; must be >= From.
public DateTimeOffset To { get; init; }