Skip to main content

Time

Library handles time based parsing / operations. Untested. Based off of PHP's time system.

note

This library is out of date, and does not necessarily work. I recommend using os.time()

Functions

getDaysMonthTable

Time.getDaysMonthTable(yearnumber) → {[number]number}

Returns a Days in months table for the given year

getOrdinalOfNumber

Time.getOrdinalOfNumber(numbernumber) → string(
Like1st,
2nd
)
Show raw api
{
    "functions": [
        {
            "name": "getDaysMonthTable",
            "desc": "Returns a Days in months table for the given year",
            "params": [
                {
                    "name": "year",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ [number]: number }"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 26,
                "path": "src/time/src/Shared/Time.lua"
            }
        },
        {
            "name": "getOrdinalOfNumber",
            "desc": "",
            "params": [
                {
                    "name": "number",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string (Like 1st, 2nd)"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 165,
                "path": "src/time/src/Shared/Time.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Time",
    "desc": "Library handles time based parsing / operations. Untested. Based off of PHP's time system.\n\n:::note\nThis library is out of date, and does not necessarily work. I recommend using os.time()\n:::",
    "source": {
        "line": 10,
        "path": "src/time/src/Shared/Time.lua"
    }
}