weekday
Return the position of a weekday: 0 - 7, where 0 is Sunday.
def weekday(
name: str
) - > int
Return the position of a weekday: 0 - 7, where 0 is Sunday.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | The full name or three-letter abbreviation of the weekday to look up. |
Returns
| Type | Description |
|---|---|
int | The integer index representing the day of the week, where 0 corresponds to Sunday and 1 to Monday. |