>From c983a0fb70b566b47502fe19dba62d7c298386e7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 7 Dec 2020 11:11:14 -0800 Subject: [PROPOSED] Document zic coalescing zone+DST transitions * NEWS, zic.8: Document that zic coalesces transitions when a zone falls back just before DST springs forward. Document jump-back ambiguity * zic.8: Document avoidance of two nearly-simultanous transitions for Grand Turk. --- NEWS | 5 +++++ zic.8 | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/NEWS b/NEWS index dd131a9..bd9a2d2 100644 --- a/NEWS +++ b/NEWS @@ -35,6 +35,11 @@ Unreleased, experimental changes returning to Eastern Time with US DST in 2018, rather than as maintaining EDT until 2015-11-01. (Thanks to P Chan.) + Changes to documentation + + The zic man page now documents zic's coalescing of transitions + when a zone falls back just before DST springs forward. + Release 2020d - 2020-10-21 11:24:13 -0700 diff --git a/zic.8 b/zic.8 index dcd2fa3..2273dad 100644 --- a/zic.8 +++ b/zic.8 @@ -590,6 +590,36 @@ first transition into standard time. In a single zone it is an error if two rules take effect at the same instant, or if two zone changes take effect at the same instant. .PP +If a continuation line subtracts from the UT offset after a transition that +would be interpreted to be later if using the continuation line's rules, the +.q "until" +time of the earlier zone or continuation line is interpreted according +to the continuation line's rules. +For example: +.br +.ne 7 +.nf +.in +2m +.ta \w'# Rule\0\0'u +\w'NAME\0\0'u +\w'FROM\0\0'u +\w'max\0\0'u +\w'\*-\0\0'u +\w'Mar\0\0'u +\w'Sun>=8\0\0'u +\w'2:00\0\0'u +\w'SAVE\0\0'u +.sp +# Rule NAME FROM TO \*- IN ON AT SAVE LETTER/S +Rule US 2007 max \*- Mar Sun>=8 2:00 1:00 D +Rule US 2007 max \*- Nov Sun>=1 2:00 0 S +.ta \w'Zone\0\0America/Grand_Turk\0\0'u +\w'STDOFF\0\0'u +\w'RULES\0\0'u +\w'FORMAT\0\0'u +# Zone\0\0NAME STDOFF RULES FORMAT [UNTIL] +Zone\0\0America/Grand_Turk \*-4:00 \*- AST 2018 Mar 11 2:00 + \*-5:00 US E%sT +.sp +.in +.fi +Here, an incorrect reading would be there were two clock changes on 2018-03-11, +the first from 02:00 AST (\*-04) to 01:00 EST (\*-05), +and the second an hour later from 02:00 EST (\*-05) to 03:00 EDT (\*-04). +However, +.B zic +interprets this more sensibly as a single transition from 02:00 AST (\*-04) to +02:00 EDT (\*-04). +.PP A link line has the form .sp .nf -- 2.27.0