Answers for "origin of time in python"

4

datetime python timezone

import datetime
import pytz
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))
Posted by: Guest on June-18-2020
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