datetime.UTC alias was new in 3.11
This commit is contained in:
parent
cda73d2a35
commit
e9ba7a4a61
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue