canceraiddev/elm-form-builder/17.0.0

NOTE: the latest version is 28.0.1

Form.Lib.Time

Helper functions for working with elm/time

Time

toDateString : Posix -> String

Uses Iso8601.fromTime produces a date with timestamp and takes first 10 characters to return "YYYY-MM-DD"

offsetYear : Int -> Posix -> Posix

Offsets a time by the given number of years and returns a new time, floored to the start of the year.

offsetDay : Int -> Posix -> Posix

Offsets a time by the given number of days and returns a new time, floored to the start of the day.