#Get Date/Time in Native Mojo

8 messages · Page 1 of 1 (latest)

heavy seal
#

Is there a library for this? The only way I can think to implement is with a python module import.

calm ledge
#

Mojo has a time module

#

just do import time

#

for the current time you can do time.now()

#

if you want the year/month/day i believe you'll have to import a python or C module

heavy seal
#

time.now() gives monotonic system time

#

not current date/time