Cldr.Calendar.Interval.day
You're seeing just the function
day
, go back to Cldr.Calendar.Interval module for more information.
Specs
day(Date.t()) :: Date.Range.t()
Returns a Date.Range.t
that represents
the day
.
The range is enumerable.
Arguments
year
is anyyear
forcalendar
day
is anyday
in theyear
forcalendar
calendar
is any module that implements theCalendar
andCldr.Calendar
behaviours. The default isCldr.Calendar.Gregorian
.
Returns
- A
Date.Range.t()
representing the the enumerable days in theweek
Examples
iex> Cldr.Calendar.Interval.day 2019, 52, Cldr.Calendar.Fiscal.US
#DateRange<~D[2019-02-21 Cldr.Calendar.Fiscal.US], ~D[2019-02-21 Cldr.Calendar.Fiscal.US]>
iex> Cldr.Calendar.Interval.day 2019, 92, Cldr.Calendar.NRF
#DateRange<~D[2019-W14-1 Cldr.Calendar.NRF], ~D[2019-W14-1 Cldr.Calendar.NRF]>
Cldr.Calendar.Interval.day 2019, 8, Cldr.Calendar.ISOWeek
#DateRange<%Date{calendar: Cldr.Calendar.ISOWeek, day: 1, month: 2, year: 2019}, %Date{calendar: Cldr.Calendar.ISOWeek, day: 1, month: 2, year: 2019}>
Specs
day(Calendar.year(), Calendar.day(), Cldr.Calendar.calendar()) :: Date.Range.t()