datetime.UTC alias was new in 3.11

This commit is contained in:
Jeff Epler 2024-07-20 10:48:23 -05:00
parent cda73d2a35
commit e9ba7a4a61

View file

@ -1,8 +1,8 @@
from datetime import UTC, datetime
from datetime import timezone, datetime
from leapseconddata import LeapSecondData
my_date = datetime(2024, 7, 18, 22, 0, 0, tzinfo=UTC)
my_date = datetime(2024, 7, 18, 22, 0, 0, tzinfo=timezone.utc)
data = LeapSecondData.from_standard_source()
my_tai_date = data.to_tai(my_date)