Cldr.Calendar.iso_days_to_day_of_week
You're seeing just the function
iso_days_to_day_of_week
, go back to Cldr.Calendar module for more information.
Specs
iso_days_to_day_of_week(Calendar.iso_days() | Calendar.day()) :: day_of_week()
Returns the day of the week for a given
iso_day_number
Arguments
iso_day_number
is the number of days since the start of the epoch. SeeCldr.Calendar.date_to_iso_days/1
Returns
- An integer representing a day of the week where Monday
is represented by
1
and Sunday is represented by7
Examples
iex> days = Cldr.Calendar.date_to_iso_days ~D[2019-01-01]
iex> Cldr.Calendar.iso_days_to_day_of_week(days) == Cldr.Calendar.tuesday
true