Return to homepage

DOSATO

Copyright © 2024 Sebastiaan Heins

3.5 Time

Functions

long TIME ()

Returns the current time in seconds.

void SLEEP (double amount_seconds)

Waits execution for the given amount of seconds (can be decimal).

string DATETIME (long time_stamp = ?, string format = ?)

Returns a string representation of the given timestamp.
If no timestamp is given, the current time is used.
If no format is given, the default format is used: YYYY-MM-DD HH:MM:SS

long CLOCK ()

Returns the current time in milliseconds.