Answers for "get utcnow in python"

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