AdrianRibao/elm-derberos-date/1.2.0

NOTE: the latest version is 1.2.3

Derberos.Date.Calendar

Utils for working with ranges of dates.

Calendar

getFirstDayOfMonth : Zone -> Posix -> Posix

Get the first day of the month for a given time.

getLastDayOfMonth : Zone -> Posix -> Posix

Get the last day of the month at time 00:00:00

getCurrentWeekDates : Zone -> Posix -> List Posix

Get the week dates for a given time. It returns the week from Monday to Sunday

getCurrentMonthDates : Zone -> Posix -> List Posix

Return a list of dates for the month where the time belongs.

This returns the days from 1 to last day of the month.

getCurrentMonthDatesFullWeeks : Zone -> Posix -> List Posix

Return a list of dates for the month starting on Monday and ending on Sunday

getFirstDayOfYear : Zone -> Posix -> Posix

Get the first day of the year

getLastDayOfYear : Zone -> Posix -> Posix

Get the last day of the year