-
Notifications
You must be signed in to change notification settings - Fork 0
month_get_int
Rodrigo Gómez Maitret edited this page Sep 1, 2020
·
1 revision
Turns a string into a month's index.
month_get_int(str)
| Parameter | Description |
|---|---|
| str | The string to convert (must be lowercase). |
Returns: Real
Acceptable strings:
| String | String (short) | Returns |
|---|---|---|
| january | jan | 0 |
| february | feb | 1 |
| march | mar | 2 |
| april | apr | 3 |
| may | 4 | |
| june | jun | 5 |
| july | jul | 6 |
| august | aug | 7 |
| september | sep | 8 |
| october | oct | 9 |
| november | nov | 10 |
| december | dec | 11 |
saved_month = month_get_int("september");The code above will set the variable "saved_month" to 8.
PoshoLib / Posho_Dates / month_get_int