リソース · 82
タイムゾーンと遅延イベント
報告期間はイベント時刻と締め規則に依存します。
更新済み · 12 min
このガイドが達成するのに役立つこと
- 時点と集計日を分ける
- 期間の境界を試す
- 遅着データの訂正を示す
クイックチェック
- 時間帯、夏時間、遅延許容期間を記録し、訂正を確定報告と照合します。
- サーバー時刻はイベントを違う日に割り当てる場合があります。
手順
- 1
時点と集計日を分ける
イベント時刻、受信時刻、業務のタイムゾーンを別々に記録します。架空例では23:30 UTCは固定オフセットUTC+02:00で翌日の01:30です。PostgreSQLのタイムゾーン付きタイムスタンプは元のゾーン名を保持しません。
時刻フィールドとゾーンの定義表。
- 2
期間の境界を試す
開始を含め、終了を含めない区間を使います。業務ゾーンで境界を決めてからUTCに変換します。夏時間の変更、月の切替、時刻のない日付を試します。現地の一日を常に24時間として扱うことはできません。
各ケースの期待される集計期間。
- 3
遅着データの訂正を示す
許容遅延と集計の締切を決めます。同じ識別子を再処理し、新規イベントと重複を区別します。公開版を残して訂正の影響を記録します。ウォーターマークは到着の見積もりであり、完全性の保証ではありません。
版を残したレポートと差分の説明。
再現できる受け入れ事例
架空の例です。顧客や実際の観測結果を示すデータではありません。
事例の入力を見る
{
"event_time": "2026-10-08T23:30:00Z",
"report_zone": "UTC+02:00",
"local_time": "2026-10-09T01:30:00+02:00"
}期待される判断
指定の時間帯では10月9日のイベントです。UTCの時点も保持します。
検証手順
- 報告の時間帯と基準時点を定めます。
- 深夜付近のイベントを再現します。
- UTC、現地日付、締切規則を残します。 時刻変更時の曖昧な現地時刻も含め、時点を推測せずオフセットとタイムゾーンを保存します。
架空の事例
具体的な状況
時間帯、夏時間、遅延許容期間を記録し、訂正を確定報告と照合します。
決定と期待される証拠
レポートの定義がそう求める場合に限ります。両方の時刻を保存し、遅着イベントの扱いを説明します。
管理指標
| 指標 | 測定対象 | 最初のアクション |
|---|---|---|
| 到着遅延 | 受信 − イベント | 時計を比較できることを確認 |
| 集計の訂正 | 新版の件数 − 公開件数 | 同じ期間、識別子、締切で比較 |
よくある間違い
- サーバー時刻はイベントを違う日に割り当てる場合があります。
よくある質問
受信日をイベント日として使えますか?
レポートの定義がそう求める場合に限ります。両方の時刻を保存し、遅着イベントの扱いを説明します。
時系列:UTCとタイムゾーン
この言語版の詳しい参照メモは英語で提供しています。
Reliable timelines separate wall time, instants and receipt
In cyber logs, OSINT collection or dashboards, two lines displaying 02:30 can represent different instants. Receipt order can also differ from event order. Preserving both axes avoids inventing a causal sequence from a simple string sort.
Fictional offline exercise for Europe/Paris, using IANA 2026e rules supplied by tzdata 2026.5. March and October 2026 clock changes are acceptance cases. The times and six deliveries describe no real incident. A correct conversion establishes neither source-clock accuracy nor log authenticity.
Four pieces of information that do not replace each other
| Information | What it provides | What it does not establish |
|---|---|---|
| Original text | Received representation, precision and any supplied offset. | Clock accuracy or event identity. |
| UTC instant | A comparable position on the time axis. | The business calendar or original zone. |
| Named zone and version | Civil-time rules applied to a local time. | Device synchronization. |
| Observation time | When the collector saw the line according to its own clock. | When the event actually occurred. |
An ambiguous local time remains undecidable without more information. The profile expects an explicit fold choice or an offset consistent with the claimed zone. The diagram shows two instants, not a duplicate to delete. Computation uses UTC for elapsed durations and comparisons across the fold.
12 inputs and their normalization decisions
Two contracts are tested: local time plus a named zone, or an offset timestamp plus the zone it claims to represent. The teaching profile requires YYYY-MM-DDTHH:MM:SS, with Z or ±HH:MM in the second contract. Fractions, leap seconds, lowercase variants and -00:00 are outside this profile; that does not declare them all invalid under RFC 3339.
T01 · Repeated time without a choice
- Received text
2026-10-25T02:30:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
2026-10-25T00:30:00Z·2026-10-25T02:30:00+02:00· fold 02026-10-25T01:30:00Z·2026-10-25T02:30:00+01:00· fold 1
Selected instant : No instant selected
Clarify: two possible instants
Two UTC candidates exist. Neither is selected by default: the record needs clarification rather than an invented instant.
T02 · First occurrence selected
- Received text
2026-10-25T02:30:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
0
Valid UTC candidates
2026-10-25T00:30:00Z·2026-10-25T02:30:00+02:00· fold 02026-10-25T01:30:00Z·2026-10-25T02:30:00+01:00· fold 1
Selected instant : 2026-10-25T00:30:00Z
Temporal interpretation resolved
fold 0 selects the first 02:30 occurrence: +02:00 and 00:30 UTC. This choice must come from producer information, beyond a collector’s hidden preference.
T03 · Second occurrence selected
- Received text
2026-10-25T02:30:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
1
Valid UTC candidates
2026-10-25T00:30:00Z·2026-10-25T02:30:00+02:00· fold 02026-10-25T01:30:00Z·2026-10-25T02:30:00+01:00· fold 1
Selected instant : 2026-10-25T01:30:00Z
Temporal interpretation resolved
fold 1 selects the second occurrence: +01:00 and 01:30 UTC. Its wall display matches T02, but the instant is one hour later.
T04 · Missing spring local time
- Received text
2026-03-29T02:30:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
No valid local candidate
Selected instant : No instant selected
Reject: missing local time
On 29 March 2026, 02:30 does not exist in this zone. A round trip through UTC returns no candidate to that local time. Merely attaching tzinfo does not validate it.
T05 · Unambiguous local time
- Received text
2026-10-22T10:00:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
2026-10-22T08:00:00Z·2026-10-22T10:00:00+02:00· fold 0
Selected instant : 2026-10-22T08:00:00Z
Temporal interpretation resolved
These rules yield one UTC position. Acceptance covers temporal interpretation. Device-clock accuracy remains unverified.
T06 · Unknown zone
- Received text
2026-10-25T02:30:00- Contract
Local time + zone- Claimed zone
Europe/Pariss- Fold choice
Not supplied
Valid UTC candidates
Check not performed
Selected instant : No instant selected
Reject: unknown zone
Europe/Pariss is unavailable in the supplied rules. The profile rejects it instead of silently substituting the server zone.
T07 · Fold value outside the contract
- Received text
2026-10-25T02:30:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
2
Valid UTC candidates
Check not performed
Selected instant : No instant selected
Reject: invalid fold choice
The profile accepts only 0, 1 or no fold choice. It rejects 2 before selection.
T08 · Impossible calendar date
- Received text
2026-02-30T10:00:00- Contract
Local time + zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
Check not performed
Selected instant : No instant selected
Reject: impossible date or time
30 February 2026 is not a calendar date. A correctly shaped string is insufficient to produce an instant.
T09 · Consistent +02:00 offset
- Received text
2026-10-25T02:30:00+02:00- Contract
Offset timestamp + claimed zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
2026-10-25T00:30:00Z·2026-10-25T02:30:00+02:00· fold 02026-10-25T01:30:00Z·2026-10-25T02:30:00+01:00· fold 1
Instant carried by the offset : 2026-10-25T00:30:00Z
Conversion back to the claimed zone : 2026-10-25T02:30:00+02:00
Selected instant : 2026-10-25T00:30:00Z
Temporal interpretation resolved
+02:00 matches the first occurrence of this Paris wall time. It yields the same instant as T02.
T10 · Consistent +01:00 offset
- Received text
2026-10-25T02:30:00+01:00- Contract
Offset timestamp + claimed zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
2026-10-25T00:30:00Z·2026-10-25T02:30:00+02:00· fold 02026-10-25T01:30:00Z·2026-10-25T02:30:00+01:00· fold 1
Instant carried by the offset : 2026-10-25T01:30:00Z
Conversion back to the claimed zone : 2026-10-25T02:30:00+01:00
Selected instant : 2026-10-25T01:30:00Z
Temporal interpretation resolved
+01:00 matches the second occurrence. It yields T03’s instant, which differs from T09.
T11 · Offset inconsistent with the zone
- Received text
2026-03-29T02:30:00+01:00- Contract
Offset timestamp + claimed zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
No valid local candidate
Instant carried by the offset : 2026-03-29T01:30:00Z
Conversion back to the claimed zone : 2026-03-29T03:30:00+02:00
Selected instant : No instant selected
Reject: time and zone disagree
The +01:00 string denotes a calculable instant, but conversion to Europe/Paris displays 03:30 with +02:00. It contradicts a claim of Paris local time 02:30. Rejection applies to this zone claim; the timestamp can still have meaning in another context.
T12 · Missing offset in the second contract
- Received text
2026-10-25T02:30:00- Contract
Offset timestamp + claimed zone- Claimed zone
Europe/Paris- Fold choice
Not supplied
Valid UTC candidates
Check not performed
Selected instant : No instant selected
Reject under the format contract
Offset mode requires an explicit offset. The same text can belong to T01’s local contract, but switching contracts must be explicit.
Three civil days, three UTC durations
| Europe/Paris date | Inclusive UTC start | Exclusive UTC end | Elapsed duration |
|---|---|---|---|
| 2026-03-29 | 2026-03-28T23:00:00Z | 2026-03-29T22:00:00Z | 23 h |
| 2026-10-22 | 2026-10-21T22:00:00Z | 2026-10-22T22:00:00Z | 24 h |
| 2026-10-25 | 2026-10-24T22:00:00Z | 2026-10-25T23:00:00Z | 25 h |
Boundaries are consecutive local midnights converted separately to UTC. A civil day and a duration of 24 hours serve different needs. This table changes no organizational cutoff rule.
Six fictional deliveries, four event identifiers
Studied window: 25 October 2026, from 00:00 UTC inclusive to 02:00 UTC exclusive. Clocks are assumed accurate only for the exercise. Each snapshot uses deliveries observed strictly before its cutoff. Receipt does not change an event’s time-window assignment.
| Delivery / event | Event instant UTC | Observation UTC | Role in the exercise |
|---|---|---|---|
| R01 / E01 | 2026-10-25T00:50:00Z | 2026-10-25T00:51:00Z | Initial observation · 2026-10-25T02:50:00+02:00 |
| R02 / E02 | 2026-10-25T01:10:00Z | 2026-10-25T01:11:00Z | Initial observation · 2026-10-25T02:10:00+01:00 |
| R03 / E03 | 2026-10-25T01:30:00Z | 2026-10-25T02:20:00Z | Late arrival · 2026-10-25T02:30:00+01:00 |
| R04 / E04 | 2026-10-25T02:00:00Z | 2026-10-25T02:01:00Z | Exclusive end boundary · 2026-10-25T03:00:00+01:00 |
| R05 / E02 | 2026-10-25T01:10:00Z | 2026-10-25T02:10:00Z | Identical E02 redelivery · 2026-10-25T02:10:00+01:00 |
| R06 / E01 | 2026-10-25T00:55:00Z | 2026-10-25T02:30:00Z | Conflicting E01 version · 2026-10-25T02:55:00+02:00 |
R01 displays 02:50 with +02:00 and R02 displays 02:10 with +01:00. String sorting puts R02 before R01; instant sorting puts E01 at 00:50 UTC before E02 at 01:10 UTC. Computed chronological order still establishes no causal relationship.
Three dated states: explain 2 → 3 → 2
| State / UTC cutoff | Included events | Count | Explanation |
|---|---|---|---|
| S1 · 2026-10-25T02:00:00Z | E01, E02 | 2 | S1: E01 and E02 are known and inside the window. E03 has not yet been observed. |
| S2 · 2026-10-25T02:25:00Z | E01, E02, E03 | 3 | S2: E03 explains the increase from 2 to 3. R05 identically redelivers E02, counted once; E04 remains at the exclusive end. |
| S3 · 2026-10-25T02:40:00Z | E02, E03 | 2 | S3: R06 reveals two different temporal contents for E01. The local policy sends both versions to review and removes E01 from the included count, now 2. This quarantine policy belongs to the exercise; other workflows may choose differently. |
An event identifier deduplicates here only when UTC instant and kind match. The same identifier with changed content triggers review. The exercise preserves the conflict instead of overwriting a version or deleting it without a trace. Earlier snapshots retain their dates. These are fictional exercise counts, with no measurement of real activity.
Six records to reconstruct the timeline
- Original text and received precision, retained with a protected source reference.
- Normalized instant, claimed zone, rule version and ambiguous/missing-time decision.
- Observation time and the component whose clock produced it, separately from event time.
- Stable identifiers and the rule separating identical redelivery from conflicting versions.
- Inclusive/exclusive boundaries, cutoff and included records for every published snapshot.
- Unverified clock limits: synchronization, drift, precision or causal order.
Conversions use the Europe/Paris file bundled with tzdata 2026.5, IANA 2026e. Clarification, format and quarantine decisions are a local editorial method. OpenTelemetry distinguishes source and observation time; this page claims neither a conforming OTLP record nor verification of real clocks.
Python 3.12.14 · tzdata 2026.5 · IANA 2026e
Primary sources and rule version
- IETF · RFC 3339 · Standards Track · July 2002
§4.2 Numeric offsets · §5.1 Ordering · §5.6 Internet timestamp format - Python · PEP 495 · Final · Python 3.6+ · checked 2026-10-22
Fold and gap · constructors do not validate missing times · temporal arithmetic - Python 3.12 · zoneinfo · Python 3.12 documentation · checked 2026-10-22
fold · data sources · ZoneInfo.from_file - IANA · Time Zone Database 2026e · Release 2026e · 2026-09-29
Versioned time-zone database · scope of the exercise - IANA · 2026e Europe rules · tzdb 2026e · source file
Rule EU: March/October last Sunday at 01:00 UTC · Zone Europe/Paris - OpenTelemetry · Logs Data Model · Stable model · living documentation · checked 2026-10-22
Timestamp: source clock · ObservedTimestamp: collection-system clock
Sources reviewed on
公式参照文献
参照文献はメソッドを裏付けるものです。 チェックは状況に合わせて調整してください。 これらは認証ではありません。 元の参照文献のタイトルやソース文書は別の言語で書かれている場合があります。
参照資料の確認日 .
