Trust in the result / 11SI · L00P.AI

One local time, two instants

Two occurrences of 02:30, two offsets and an hour apart in UTC. We check instant representation and a Python comparison trap.

2026-11-20 · 1.0 · PL / EN

1. Which 02:30?

When two archive entries carry the same time, a leader needs to establish whether they describe the same instant. The label 25 October 2026, 02:30, Europe/Warsaw does not settle that question. In the timezone data used here, that local time occurs twice. Automatically choosing the first occurrence can hide missing source information. Before merging entries, retain the distinction or request clarification.

2. Our trial and the origin of the rules

We prepared a fictional pair of events and a protocol before running the calculations. We used Python 3.11.11 and the installed tzdata 2025.3 package with IANA 2025c rules. We retained the exact Europe/Warsaw file bytes and their SHA-256 hash, and constructed the zone object from that copy. This is a trial using the specified rules, without claiming they are the latest.

The first 02:30, marked fold=0, has offset +02:00 and corresponds to 00:30 UTC. The second, fold=1, has +01:00 and corresponds to 01:30 UTC. After converting both instants to UTC, the difference is 3600 seconds. Conversion back from UTC recovered the local time, offset and fold in both cases. The ordinary local time 03:30 had +01:00, corresponded to 02:30 UTC and returned with fold=0.

Two occurrences of 02:30 in Europe/Warsaw on 25 October 2026: +02:00 is 00:30 UTC; +01:00 is 01:30 UTC. UTC difference: 3600 seconds.
Europe/Warsaw / 2026-10-25
02:30 +02:00 / fold=0 -> 00:30 UTC
02:30 +01:00 / fold=1 -> 01:30 UTC
UTC: difference 3600 s
Date + 02:30 + zone name alone: two possibilities

3. The comparison trap

In this trial, both datetime objects shared the same tzinfo object. Python compared them as equal, subtraction returned zero, and a set retained one element. After conversion to UTC, a set retained two elements and subtraction returned 3600 seconds. The documentation describes ignoring fold for comparisons within the same zone. Equality of these objects therefore cannot establish that the instants have been distinguished.

Removing the zone produced identical local-time strings. Parsing the string without an offset supplied no zone. The default fold=0 selected the earlier instant; it did not prove that this was the instant intended by the entry's author.

4. What to retain in a register

Retain the original label and, separately, the resolved UTC instant, explicit offset and zone name if it matters for later presentation. Record the basis for the choice and the rule version used for conversion. If the source does not distinguish the occurrences, mark the gap rather than inventing a choice.

In our trial, parsing the strings with +02:00 and +01:00 preserved the correct UTC instants. The offset alone did not carry the Europe/Warsaw name or its rules: the parser created a fixed-offset zone. Only conversion to the specified named zone recovered fold. During acceptance, compare UTC representations and presentation fields separately. Do not base a round-trip check solely on equality of local objects.

5. Limits of the result

We performed 26 checks of one local trial, covering expected collisions and correct conversions. These are not 26 independent experiments. We did not read an actual event clock or test NTP, UTC accuracy, audio synchronization, latency or a service scheduler. We did not check the spring gap, all zones or future time legislation. A correct representation of an instant does not establish the accuracy of the clock that recorded it.

6. Sources, AI participation and correction

The basis is our ND02 trial performed on 20 November 2026 Polish time, 19 November UTC: protocol, code, retained zone rules, environment and results. The zoneinfo documentation explains fold, rule sources and loading from a file; datetime describes comparison and conversion; PEP 495 explains occurrence disambiguation. Current documentation for the 3.11 branch does not change the trial's interpreter version.

Codex performed the AI agent roles of editor and checker; no second-model review was received. The fictional data, text, diagram and ASCII are our own. No third-party illustrations or private events were used. Changes to rules, environment version or storage contract, or a result conflicting with the retained report, trigger correction. Format and browser acceptance are separate from the original trial.