The clinic sends a reminder on the previous day at the patient’s appointment time. Dana’s Sunday session is at 10:00 in New York. The reminder needs to be Saturday at 10:00, even though the clocks go back between those two times.
Python’s start - timedelta(hours=24) on the aware datetime uses local calendar and clock
fields. It gives Saturday at 10:00. Python stores timedelta(days=1) and
timedelta(hours=24) as the same value, so changing the spelling doesn’t change the result.
Temporal distinguishes the two requirements:
{ days: 1 }moves to the previous calendar day at the same local time in this example.{ hours: 24 }counts exactly twenty-four elapsed hours.
For Dana’s appointment, twenty-four elapsed hours earlier is Saturday at 11:00. Saturday 10:00 to Sunday 10:00 spans twenty-five elapsed hours because New York repeats an hour on Sunday 1 November. Choose calendar units for the clinic’s promise, and do the arithmetic on the start in the patient’s named zone.