Answers for "time library in python not working"

0

python - oordinated universal time

from datetime import datetime, timezone
print(datetime.now())              # timezone
print(datetime.now(timezone.utc))  # coordinated universal time
Posted by: Guest on August-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language