Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

206 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pure.Primitives.Time.Operations

Temporal comparison conditions and ordering utilities for Pure ITime primitives.

.NET build & test Build and Deploy NuGet License: MIT

Overview

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.

Types

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.

Dependencies

About

Temporal comparison conditions for Pure ITime primitives — Before, After, NotBefore, NotAfter, Equal, NotEqual, and a TimeComparer.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from kudima03/Pure.Template