Cldr.Calendar.Interval.month

You're seeing just the function month, go back to Cldr.Calendar.Interval module for more information.

Specs

month(Date.t()) :: Date.Range.t()

Returns a Date.Range.t that represents the year.

The range is enumerable.

Arguments

  • year is any year for calendar

  • month is any month in the year for calendar

  • calendar is any module that implements the Calendar and Cldr.Calendar behaviours. The default is Cldr.Calendar.Gregorian.

Returns

  • A Date.Range.t() representing the the enumerable days in the month

Examples

iex> Cldr.Calendar.Interval.month 2019, 3, Cldr.Calendar.Fiscal.UK
#DateRange<~D[2019-03-01 Cldr.Calendar.Fiscal.UK], ~D[2019-03-30 Cldr.Calendar.Fiscal.UK]>

iex> Cldr.Calendar.Interval.month 2019, 3, Cldr.Calendar.Fiscal.US
#DateRange<~D[2019-03-01 Cldr.Calendar.Fiscal.US], ~D[2019-03-31 Cldr.Calendar.Fiscal.US]>
Link to this function

month(year, month, calendar \\ Cldr.Calendar.Gregorian)

View Source

Specs