Temporal comparison conditions and ordering utilities for Pure ITime primitives.
Pure.Primitives.Time.Operations provides six condition types that evaluate temporal relationships between ITime values, plus a TimeComparer for ordering. Every condition implements IBool, so results compose naturally with other Pure primitives.
| Type | True when |
|---|---|
EqualCondition |
All supplied ITime values represent the same time-of-day |
NotEqualCondition |
Not all values represent the same time-of-day |
BeforeCondition |
Each value in the sequence is strictly earlier than the previous |
AfterCondition |
Each value in the sequence is strictly later than the previous |
NotBeforeCondition |
The sequence is not strictly descending |
NotAfterCondition |
The sequence is not strictly ascending |
TimeComparer |
IComparer<ITime> for ordering time values |
All condition types accept params IEnumerable<ITime> and implement IBool. Comparison covers hour, minute, second, millisecond, microsecond, and nanosecond fields.
Pure.Primitives.Abstractions—ITimeandIBoolinterfaces