time Module

datetime

int ⇒ str

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

format

int str ⇒ str

Formats timestamp int using string str.

Tip

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

info

int ⇒ dict:timeinfo

Returns a timeinfo dictionary from timestamp int.

now

∅ ⇒ flt

Returns the current time as Unix timestamp with microseconds.

stamp

∅ ⇒ int

Returns the current time as Unix timestamp.

to-timestamp

dict:timeinfo ⇒ int

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