Creating timezone aware datetimes
In this exercise, you will practice setting timezones manually.
Questo esercizio fa parte del corso
Working with Dates and Times in Python
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Import datetime, timezone
from datetime import datetime, ____
# October 1, 2017 at 15:26:26, UTC
dt = datetime(2017, 10, 1, 15, 26, 26, tzinfo=____)
# Print results
print(dt.isoformat())