Skip to content

weekday_get_int

Rodrigo Gómez Maitret edited this page Sep 1, 2020 · 2 revisions

Description

Turns a string into a day of the week's index.

Syntax

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

Example

saved_day = weekday_get_int("friday");

The code above will set the variable "saved_day" to 5.

Map

PoshoLib / Posho_Dates / weekday_get_int

Functions
Objects
Simplifications
Macros
Clone this wiki locally