structDateTime
struct DateTime
year: int
month: int
day: int
weekday: int
hour: int
minute: int
second: int
millisecond: int
endtime: seconds since the program started, today's date and time, and waiting. use "time.jamo"
The performance counter's value when the program started is kept in time_start, and its speed in time_speed. The first call works them out from when Windows made the process, so it counts from the real start, and later calls only read the counter into time_reading, made once, so they need no memory.
struct DateTime
year: int
month: int
day: int
weekday: int
hour: int
minute: int
second: int
millisecond: int
endfunc time_setup()
Works out the counter's value when the program started, on the first call. The counter's speed never changes while Windows runs
func seconds_since_start(): float
Seconds since the program started, as a float with better than a microsecond's detail. It only goes up
func sleep(seconds: float)
Waits this many seconds, to about a millisecond, without using the processor
func sleep_ms(milliseconds: int)
Waits this many milliseconds
func time_ms(): int
Whole milliseconds since the program started
func now(): DateTime
The PC's date and time now, in its own time zone. weekday is 0 for Sunday up to 6 for Saturday
func time_two_digits(number: int): string
func DateTime.date_text(): string
Like 2026-11-03
func DateTime.time_text(): string
Like 09:05:30, on a 24-hour clock
func DateTime.weekday_name(): string
Like Tuesday