goilluminate/elm-fancy-daterangepicker/2.0.0

NOTE: the latest version is 7.0.0

Rerouted (fork, needs approval). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/hulufei/elm-fancy-daterangepicker (a fork).

What we checked: The original repo or its tag is gone; tag 2.0.0 is on the fork https://github.com/hulufei/elm-fancy-daterangepicker; its commit e993784b90ad is from 2018-10-17 17:01 UTC, before the version was published (2018-10-17 17:03 UTC); elm.json differs from package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.

We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:

  • lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,
  • LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,
  • LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.

Details · package.elm-lang.org's zip: https://github.com/goilluminate/elm-fancy-daterangepicker/zipball/2.0.0/

DateRangePicker.Date

A custom Date Helper Library.

initDate : Date

A function that initializes a date.

dateTuple : Date -> ( Int, Int, Int )

A function that converts a Date into a tuple. (year, month, day)

formatDate : Date -> String

A function to format a Date into a string.

  • Ex. Feb 15, 2018
formatDay : Weekday -> String

A function that takes a Weekday and formats it into the abbreviated string.

  • Ex. Mon -> "Mo"
formatMonth : Month -> String

A function that formats a Month into the full string.

  • Ex. Jan -> "January"
dayToInt : Weekday -> Int

A function that takes a Weekday and returns it as an integer.

  • Sun - Sat
  • 1 - 7
monthToInt : Month -> Int

A function that takes a Month and returns it as an Int.

  • Ex. Jan -> 1
  • Ex. Dec -> 12
daysInMonth : Year -> Month -> Int

A function that returns the number of days in the given month for the given year.

startOfMonth : Date -> Date

A function that takes a Date and returns the date representing the first of that month.

endOfMonth : Date -> Date

A function that takes a Date and returns the date representing the end of that month.

dateEqualTo : Date -> Date -> Bool

A function that checks if date a is equal to date b

dateGreaterThan : Date -> Date -> Bool

A function that checks if date a is greater than to date b

dateLessThan : Date -> Date -> Bool

A function that checks if date a is less than to date b

dateGreaterThanOrEqualTo : Date -> Date -> Bool

A function that checks if date a is greater than or equal to date b

dateLessThanOrEqualTo : Date -> Date -> Bool

A function that checks if date a is less than or equal to date b