time Module

now

flt

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 str

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

tformat

int str str

Formats timestamp int using string str.

Tip

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