Returns the current date/time in the requested format.
Prototype
STR NOW()
STR NOW(STR FORMAT)
Returns
STR
Parameters
FORMAT
: Specified format that consists of various keywords (default: YYYY-MM-DD HH:II:SS
)
YYYY
Year in 4-digit format
YY
Year in 2-digit format
ZY
Year in 2-digit format (without zeros)
MMM
Month in 3-letter format (uppercase)
Mmm
Month in 3-letter format (title case)
MM
Month in 2-digit format
ZM
Month in 2-digit format (without zeros)
DDD
Number of days into the year
DD
Day in 2-digit format
ZD
Day in 2-digit format (without zeros)
HH
Hour in 2-digit format
II
Minutes in 2-digit format
SS
Seconds in 2-digit format
999
Milliseconds in 3-digit format
999999
Microseconds in 6-digit format
Pauses the program for the specified time in milliseconds.
Prototype
VOID SLEEP(NUM MILLIS)
Returns
VOID
Parameters
MILLIS
: Number of milliseconds (1000 = 1 second)
Returns the date and time of the most recent update. The initial update occurs when the program starts. Subsequent updates are performed using the UPDATETIME-function. This function is useful when consistent date and time values are needed across different parts of the program.
Prototype
STR TIME()
STR TIME(STR FORMAT)
Returns
STR
Parameters
FORMAT
: Specified format that consists of various keywords (default: YYYY-MM-DD HH:II:SS
)
Updates the stored date and time to the current date and time. After performing the update the TIME-function will return the new values.
Prototype
VOID UPDATETIME()
Returns
VOID