Struct TimeRange
- Namespace
- Quartz
- Assembly
- Quartz.dll
A span of the day, from one time of day to another.
public readonly record struct TimeRange : IEquatable<TimeRange>
- Implements
- Inherited Members
Remarks
This is what DailyCalendar excludes or includes. It is a plain
pair: whether a range has to start before it ends, and how precise its bounds may be, is the
question of whoever is using it, and DailyCalendar answers both for itself.
Constructors
TimeRange(TimeOnly, TimeOnly)
A span of the day, from one time of day to another.
public TimeRange(TimeOnly Start, TimeOnly End)
Parameters
Remarks
This is what DailyCalendar excludes or includes. It is a plain
pair: whether a range has to start before it ends, and how precise its bounds may be, is the
question of whoever is using it, and DailyCalendar answers both for itself.
Properties
End
The time of day the range ends at.
public TimeOnly End { get; init; }
Property Value
Start
The time of day the range starts at.
public TimeOnly Start { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator TimeRange((TimeOnly Start, TimeOnly End))
Reads a (start, end) pair as a range, so a range can be written as a tuple literal.
public static implicit operator TimeRange((TimeOnly Start, TimeOnly End) value)