from datetime.datetime import utcnow code example
Example: python datetime now
import datetime
print(datetime.datetime.now()) #datetime.datetime.now() is the syntax
import datetime
print(datetime.datetime.now()) #datetime.datetime.now() is the syntax