rluiten/elm-date-extra/8.6.1

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.

Now adds 1 day if dayCount is +ve to create day list. Now subtracts 1 day if dayCount is -ve to create day list.

This could be made much faster by using daysFromCivil and not using underlying date system at all I believe.

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-2017 Robin Luiten