adius / vectual / TimeUtils.Compare

Compare dates.

is : Compare2 -> Time.Posix -> Time.Posix -> Basics.Bool

Compare two dates.

is3 : Compare3 -> Time.Posix -> Time.Posix -> Time.Posix -> Basics.Bool

Compare three dates.

This figures out the low and high bounds from date2 and date3 using minimum and maximum of them respectively.


type Compare2
    = After
    | Before
    | Same
    | SameOrAfter
    | SameOrBefore

Date comparison type for 2 dates.


type Compare3
    = Between
    | BetweenOpenStart
    | BetweenOpenEnd
    | BetweenOpen

Date comparison type for 3 dates.

Between does not care if date2 > date3 or date2 < date3.