snowhite v1.1.1 Snowhite.Helpers.CalendarBuilder View Source

Builds a month calendar from a given date.

Link to this section Summary

Functions

Build the month calendar for the given date. It also pads days before and after the given month to give a full 7-day per week list of list of date.

Link to this section Types

Specs

calendar() :: [week()]

Specs

Specs

week() :: [date(), ...]

Link to this section Functions

Link to this function

build_month(current_date)

View Source

Specs

build_month(Timex.Types.datetime()) :: calendar()

Build the month calendar for the given date. It also pads days before and after the given month to give a full 7-day per week list of list of date.