Weekday
A day of the week.
The seven days are class fields, Weekday.MONDAY through Weekday.SUNDAY.
There is no constructor, and the type is not indexable the way
Month is. Weekdays are not ordered, so < and friends raise.
Methods
(eq) other
Compares two weekdays.
(hash)()
Hashes the value.
(str)()
Returns the uppercase English name, such as MONDAY.
next() -> Weekday
Returns the following weekday, wrapping from Sunday to Monday.
previous() -> Weekday
Returns the preceding weekday, wrapping from Monday to Sunday.