Skip to content

.\time.axec

model DateTime

Represents the current date and time

def wait(ms: i32)

Suspends the current thread for the specified number of milliseconds

def now(): DateTime

Returns the current date and time

def difference(dt1: DateTime, dt2: DateTime): i64

Simple and accurate epoch-based difference calculation

def print_time(dt: DateTime, newline: bool)

Prints the date and time in the format "YYYY-MM-DD HH:MM:SS.mmm" with optional newline