Creating timezone aware datetimes

In this exercise, you will practice setting timezones manually.

This exercise is part of the course

Working with Dates and Times in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# 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())