Answers for "datetime.now tz"

26

datetime python

from datetime import datetime as d
date = d.now()
print(date.strftime("%Y-%m-%d %H:%M:%S"))
Posted by: Guest on December-09-2020
1

datetime utcnow

from datetime import datetime

datetime.utcnow()
Posted by: Guest on November-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language