yearmonth
Return the position of a month: 1 - 12, where 1 is January.
def yearmonth(
name: str
) - > int
Return the position of a month: 1 - 12, where 1 is January.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | The full name or three-letter abbreviation of the month to be converted. |
Returns
| Type | Description |
|---|---|
int | The numerical position of the month in the calendar year, ranging from 1 to 12. |