adius/vectual/4.0.0

NOTE: the latest version is 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).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/ad-si/Vectual.

What we checked: The repo moved to github.com/ad-si/Vectual and tag 4.0.0 is there; its commit 0d3f2db59855 is from 2021-02-13 17:06 UTC, before the version was published (2021-02-13 17:07 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/adius/vectual/zipball/4.0.0/

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