Cldr.Calendar.Kday.first_kday
You're seeing just the function
first_kday, go back to Cldr.Calendar.Kday module for more information.
Specs
first_kday(Calendar.day() | Date.t(), Cldr.Calendar.day_of_week()) :: Calendar.day() | Date.t()
Return the date of the first day_of_week on or after the
specified date.
Arguments
dateis%Date{}, a%DateTime{},%NaiveDateTime{}or ISO dayskis an integer day of the week.
Returns
- A
%Date{”}in the calendar of the date provided as an argument
Examples
# US election day
iex> Cldr.Calendar.Kday.first_kday(~D[2017-11-02], 2)
~D[2017-11-07]
# US Daylight savings end
iex> Cldr.Calendar.Kday.first_kday(~D[2017-11-01], 7)
~D[2017-11-05]