os
Last updated
Last updated
The os library on RetroStudio is only able to provide time.
Function
Description
clock() -> number
Returns the CPU time used by the program in seconds since the program started. Outputs Answer
(Number).
date(Time: string, Timezone: string) -> {}
Returns the formatted date based on a given time and timezone. Expects Time
and Timezone
as arguments and outputs DateTable
.
time() -> number
Returns the current time in seconds since the Unix epoch (January 1, 1970). Outputs Answer
(Number).