Skip to content

month_get_int

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

Description

Turns a string into a month's index.

Syntax

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

Example

saved_month = month_get_int("september");

The code above will set the variable "saved_month" to 8.

Map

PoshoLib / Posho_Dates / month_get_int

Functions
Objects
Simplifications
Macros
Clone this wiki locally