goilluminate/elm-fancy-daterangepicker/5.1.2

NOTE: the latest version is 7.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/goilluminate/elm-fancy-daterangepicker is gone (deleted or private); Software Heritage has not archived the repo; no fork with tag 5.1.2 found (2 same-name repos checked); no cached copy. Use another version.

Details

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.

startOfQuarter : Date -> Date

A function that takes a Date and returns the date representing the first date of the quarter that the passed in date belongs to.

endOfQuarter : Date -> Date

A function that takes a Date and returns the date representing the last date of the quarter that the passed in date belongs to.

monthAbbr : Month -> String

A function that formats a Month into the abbreviated string.

  • Ex. Jan -> "Jan"
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