rluiten/elm-date-extra/8.1.2

NOTE: this package is not compatible with Elm 0.19.1

Date.Extra.Utils

Date Utils.

2016/14/23 fromString was removed as its extra date validity checking had problems in many timezones so it became the same as Date.fromString.

Date parsing

Be careful with unsafeFromString it will Debug.crash() if it cant parse date.

unsafeFromString : String -> Date

Utility for known input string date creation cases. Checks for a fail just in case and calls Debug.crash().

Utility

dayList : Int -> Date -> List Date

Return a list of days dayLength long for successive days starting from startDate.

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

Return iso week values year, week, isoDayOfWeek. Input date is expected to be in local time zone of vm.

isoWeekOne : Int -> Date

Return date of start of ISO week one for given year.

Copyright (c) 2016 Robin Luiten