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.
Link to this function

iso_days_to_day_of_week(iso_day_number)

View Source

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

Returns

  • An integer representing a day of the week where Monday is represented by 1 and Sunday is represented by 7

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