adius/vectual/6.0.0

Renamed to ad-si/Vectual. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as adius/vectual still install under that name. 3 versions of 7 come from the new location (see their notes).

TimeUtils.Compare

Compare dates.

is : Compare2 -> Posix -> Posix -> Bool

Compare two dates.

is3 : Compare3 -> Posix -> Posix -> Posix -> Bool

Compare three dates.

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

= After
| Before
| Same
| SameOrAfter
| SameOrBefore

Date comparison type for 2 dates.

  • After
    • Return True if date1 is after date2.
  • Before
    • Return True if date1 is before date2.
  • Same
    • Return True if date1 is same as date2.
  • SameOrAfter
    • Return True if date1 is same or after date2.
  • SameOrBefore
    • Return True if date1 is same or before date2.
= Between
| BetweenOpenStart
| BetweenOpenEnd
| BetweenOpen

Date comparison type for 3 dates.

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

  • Between
    • Return True if date1 is After date2 and Before date3
    • Return True if date1 is After date3 and Before date2
  • BetweenOpenStart
    • Return True if date1 is SameOrAfter date2 and Before date3
  • BetweenOpenEnd
    • Return True if date1 is After date2 and SameOrBefore date3
  • BetweenOpen
    • Return True if date1 is SameOrAfter date2 and SameOrBefore date3