allo-media/elm-daterange-picker/1.0.0

NOTE: the latest version is 4.0.2

Renamed to n1k0/elm-daterange-picker. It is published under that name, and new versions come out there.

Versions published as allo-media/elm-daterange-picker still install under that name. 8 versions of 8 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/n1k0/elm-daterange-picker.

What we checked: The repo moved to github.com/n1k0/elm-daterange-picker. Rebuilt with git archive from commit 75bb635d73fa of https://github.com/n1k0/elm-daterange-picker (zip prefix allo-media-elm-daterange-picker-75bb635/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 0c4c148b1ef79a256923bd882ef896694891994d.

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/allo-media/elm-daterange-picker/zipball/1.0.0/

DateRangePicker.Range

Date range management.

type alias Range =
{ begin : Posix
, end : Posix
}

A time range between two Time.Posix.

between : Range -> Posix -> Bool

Checks if a Time.Posix is comprised within a Range.

days : Range -> Int

Computes the number of days in a Range.

decode : Decoder Range

Decodes a Range from JSON.

encode : Range -> Value

Encodes a Range to JSON.

format : Zone -> Range -> String

Formats a Range in simple fashion.

fromString : String -> Maybe Range

Extract a Range from a String, where the two Posix timestamps are encoded as UTC to Iso8601 format and joined with a ; character.

toString : Range -> String

Turns a Range into a String, where the two Posix timestamps are encoded as UTC to Iso8601 format and joined with a ; character.