What does this program print for the two repeated New York times?

from Dates and time
Python 3.14 advanced 3 min

What does this program print for the two repeated New York times?

Python
from datetime import datetime
from zoneinfo import ZoneInfo

zone = ZoneInfo("America/New_York")
first = datetime(2026, 11, 1, 1, 30, tzinfo=zone, fold=0)
second = datetime(2026, 11, 1, 1, 30, tzinfo=zone, fold=1)

print(second - first)
print(int(second.timestamp() - first.timestamp()))
Open in playground
Report an error