From the docs for DateComponents.weekday
Weekday units are the numbers 1 through n, where n is the number of days in the week. For example, in the Gregorian calendar, n is 7 and Sunday is represented by 1.
And from Calendar.firstWeekday
The default value of firstWeekday varies by calendar and locale ... For Gregorian and ISO 8601 calendars, 1 is Sunday.
Given this information, how can we get an array of the weekdays for the current locale, e.g.
returns [2, 3, 4, 5, 6, 7, 1] in Australia, and
returns [1, 2, 3, 4, 5, 6, 7] in USA
This is what I've done, hopefully there is a better way...