time Module

now

float

Returns the current time as Unix timestamp with microseconds.

timestamp

int

Returns the current time as Unix timestamp.

timeinfo

int dict:timeinfo

Returns a timeinfo dictionary from timestamp int.

to-timestamp

dict:timeinfo int

Converts the timeinfo dictionary dict:timeinfo to the corresponding Unix timestamp.

datetime

int string

Returns an ISO 8601 string representing the combined date and time in UTC of timestamp int.

tformat

int string string

Formats timestamp int using string string.

Tip

For information on special characters in the format string, see the format nim method.