-
Notifications
You must be signed in to change notification settings - Fork 0
weekday_get_int
Rodrigo Gómez Maitret edited this page Sep 1, 2020
·
2 revisions
Turns a string into a day of the week's index.
weekday_get_int(str)
| Parameter | Description |
|---|---|
| str | The string to convert (must be lowercase). |
Returns: Real
Acceptable strings:
| String | String (short) | Returns |
|---|---|---|
| sunday | sun | 0 |
| monday | mon | 1 |
| tuesday | tue | 2 |
| wednesday | wed | 3 |
| thursday | thu | 4 |
| friday | fri | 5 |
| saturday | sat | 6 |
saved_day = weekday_get_int("friday");The code above will set the variable "saved_day" to 5.
PoshoLib / Posho_Dates / weekday_get_int