xref: /freebsd/contrib/tzcode/zic.8 (revision e1e636193db45630c7881246d25902e57c43d24e)
1.\" This file is in the public domain, so clarified as of
2.\" 2009-05-17 by Arthur David Olson.
3.Dd January 21, 2023
4.Dt ZIC 8
5.Os
6.Sh NAME
7.Nm zic
8.Nd timezone compiler
9.Sh SYNOPSIS
10.Nm
11.Op Fl -help
12.Op Fl -version
13.Op Fl Dsv
14.Op Fl b Ar slim | fat
15.Op Fl d Ar directory
16.Op Fl g Ar gid
17.Op Fl l Ar localtime
18.Op Fl L Ar leapseconds
19.Op Fl m Ar mode
20.Op Fl p Ar posixrules
21.Oo
22.Fl r
23.Op @ Ns Ar lo Ns
24.Op /@ Ns Ar hi
25.Oc
26.Op Fl R @ Ns Ar hi
27.Op Fl t Ar localtime-link
28.Op Fl u Ar uid
29.Op Ar filename ...
30.Sh DESCRIPTION
31The
32.Nm
33program reads text from the file(s) named on the command line
34and creates the timezone information format (TZif) files
35specified in this input.
36If a
37.Ar filename
38is
39.Dq "-" ,
40standard input is read.
41.Pp
42The following options are available:
43.Bl -tag -width indent
44.It Fl -version
45Output version information and exit.
46.It Fl -help
47Output short usage message and exit.
48.It Fl b Ar bloat
49Output backward-compatibility data as specified by
50.Ar bloat .
51If
52.Ar bloat
53is
54.Cm fat ,
55generate additional data entries that work around potential bugs or
56incompatibilities in older software, such as software that mishandles
57the 64-bit generated data.
58If
59.Ar bloat
60is
61.Cm slim ,
62keep the output files small; this can help check for the bugs
63and incompatibilities.
64The default is
65.Cm slim ,
66as software that mishandles 64-bit data typically
67mishandles timestamps after the year 2038 anyway.
68Also see the
69.Fl r
70option for another way to alter output size.
71.It Fl D
72Do not create directories.
73.It Fl d Ar directory
74Create time conversion information files in the named directory rather than
75in the standard directory named below.
76.It Fl l Ar timezone
77Use
78.Ar timezone
79as local time.
80The
81.Nm
82utility
83will act as if the input contained a link line of the form
84.Bd -literal -offset indent
85Link	timezone		localtime
86.Ed
87.Pp
88If
89.Ar timezone
90is
91.Ql - ,
92any already-existing link is removed.
93.It Fl L Ar filename
94Read leap second information from the file with the given name.
95If this option is not used,
96no leap second information appears in output files.
97.It Fl p Ar timezone
98Use
99.Ar timezone 's
100rules when handling nonstandard
101TZ strings like
102.Dq "EET\-2EEST"
103that lack transition rules.
104The
105.Nm
106utility
107will act as if the input contained a link line of the form
108.Bd -literal -offset indent
109Link	\fItimezone\fP		posixrules
110.Ed
111.Pp
112If
113.Ar timezone
114is
115.Dq "\*-"
116(the default), any already-existing link is removed.
117.Pp
118Unless
119.Ar timezone
120is
121.Dq "\*-" ,
122this option is obsolete and poorly supported.
123Among other things it should not be used for timestamps after the year 2037,
124and it should not be combined with
125.Fl b Cm slim
126if
127.Ar timezone 's
128transitions are at standard time or Universal Time (UT) instead of local time.
129.It Fl r Oo @ Ns Ar lo Oc Ns Oo /@ Ns Ar hi Oc
130Limit the applicability of output files
131to timestamps in the range from
132.Ar lo
133(inclusive) to
134.Ar hi
135(exclusive), where
136.Ar lo
137and
138.Ar hi
139are possibly signed decimal counts of seconds since the Epoch
140(1970-01-01 00:00:00 UTC).
141Omitted counts default to extreme values.
142The output files use UT offset 0 and abbreviation
143.Dq "\-00"
144in place of the omitted timestamp data.
145For example,
146.Fl r @0
147omits data intended for negative timestamps (i.e., before the Epoch), and
148.Fl r @0/@2147483648
149outputs data intended only for nonnegative timestamps that fit into
15031-bit signed integers.
151Although this option typically reduces the output file's size,
152the size can increase due to the need to represent the timestamp range
153boundaries, particularly if
154.Ar hi
155causes a TZif file to contain explicit entries for
156.Em pre-
157.Ar hi
158transitions rather than concisely representing them
159with an extended POSIX.1-2017 TZ string.
160Also see the
161.Fl b Cm slim
162option for another way to shrink output size.
163.It Fl R @ Ns Ar hi
164Generate redundant trailing explicit transitions for timestamps
165that occur less than
166.Ar hi
167seconds since the Epoch, even though the transitions could be
168more concisely represented via the extended POSIX.1-2017 TZ string.
169This option does not affect the represented timestamps.
170Although it accommodates nonstandard TZif readers
171that ignore the extended POSIX.1-2017 TZ string,
172it increases the size of the altered output files.
173.It Fl t Ar file
174When creating local time information, put the configuration link in
175the named file rather than in the standard location.
176.It Fl v
177Be more verbose, and complain about the following situations:
178.Bl -bullet
179.It
180The input specifies a link to a link,
181something not supported by some older parsers, including
182.Nm
183itself through release 2022e.
184.It
185A year that appears in a data file is outside the range
186of representable years.
187.It
188A time of 24:00 or more appears in the input.
189Pre-1998 versions of
190.Nm
191prohibit 24:00, and pre-2007 versions prohibit times greater than 24:00.
192.It
193A rule goes past the start or end of the month.
194Pre-2004 versions of
195.Nm
196prohibit this.
197.It
198A time zone abbreviation uses a
199.Ql %z
200format.
201Pre-2015 versions of
202.Nm
203do not support this.
204.It
205A timestamp contains fractional seconds.
206Pre-2018 versions of
207.Nm
208do not support this.
209.It
210The input contains abbreviations that are mishandled by pre-2018 versions of
211.Nm
212due to a longstanding coding bug.
213These abbreviations include
214.Dq L
215for
216.Dq Link ,
217.Dq mi
218for
219.Dq min ,
220.Dq Sa
221for
222.Dq Sat ,
223and
224.Dq Su
225for
226.Dq Sun .
227.It
228The output file does not contain all the information about the
229long-term future of a timezone, because the future cannot be summarized as
230an extended POSIX.1-2017 TZ string.
231For example, as of 2023 this problem
232occurs for Morocco's daylight-saving rules, as these rules are based
233on predictions for when Ramadan will be observed, something that
234an extended POSIX.1-2017 TZ string cannot represent.
235.It
236The output contains data that may not be handled properly by client
237code designed for older
238.Nm
239output formats.
240These compatibility issues affect only timestamps
241before 1970 or after the start of 2038.
242.It
243The output contains a truncated leap second table,
244which can cause some older TZif readers to misbehave.
245This can occur if the
246.Fl L
247option is used, and either an Expires line is present or
248the
249.Fl r
250option is also used.
251.It
252The output file contains more than 1200 transitions,
253which may be mishandled by some clients.
254The current reference client supports at most 2000 transitions;
255pre-2014 versions of the reference client support at most 1200
256transitions.
257.It
258A time zone abbreviation has fewer than 3 or more than 6 characters.
259POSIX requires at least 3, and requires implementations to support
260at least 6.
261.It
262An output file name contains a byte that is not an ASCII letter,
263.Dq "\-" ,
264.Dq "/" ,
265or
266.Dq "_" ;
267or it contains a file name component that contains more than 14 bytes
268or that starts with
269.Dq "\-" .
270.El
271.El
272.RE
273.Sh FILES
274Input files use the format described in this section; output files use
275.Xr tzfile 5
276format.
277.Pp
278Input files should be text files, that is, they should be a series of
279zero or more lines, each ending in a newline byte and containing at
280most 2048 bytes counting the newline, and without any NUL bytes.
281The input text's encoding
282is typically UTF-8 or ASCII; it should have a unibyte representation
283for the POSIX Portable Character Set (PPCS)
284\*<https://pubs\*:.opengroup\*:.org/\*:onlinepubs/\*:9699919799/\*:basedefs/\*:V1_chap06\*:.html\*>
285and the encoding's non-unibyte characters should consist entirely of
286non-PPCS bytes.
287Non-PPCS characters typically occur only in comments:
288although output file names and time zone abbreviations can contain
289nearly any character, other software will work better if these are
290limited to the restricted syntax described under the
291.Fl v
292option.
293.Pp
294Input lines are made up of fields.
295Fields are separated from one another by one or more white space characters.
296The white space characters are space, form feed, carriage return, newline,
297tab, and vertical tab.
298Leading and trailing white space on input lines is ignored.
299An unquoted sharp character (\(sh) in the input introduces a comment which extends
300to the end of the line the sharp character appears on.
301White space characters and sharp characters may be enclosed in double quotes
302(\(dq) if they're to be used as part of a field.
303Any line that is blank (after comment stripping) is ignored.
304Nonblank lines are expected to be of one of three types:
305rule lines, zone lines, and link lines.
306.Pp
307Names must be in English and are case insensitive.
308They appear in several contexts, and include month and weekday names
309and keywords such as
310.Dq "maximum" ,
311.Dq "only" ,
312.Dq "Rolling" ,
313and
314.Dq "Zone" .
315A name can be abbreviated by omitting all but an initial prefix; any
316abbreviation must be unambiguous in context.
317.Pp
318A rule line has the form
319.Bd -literal -offset indent
320Rule	NAME	FROM	TO	\-	IN	ON	AT	SAVE	LETTER/S
321.Ed
322.Pp
323For example:
324.Bd -literal -offset indent
325Rule	US	1967	1973	\-	Apr	lastSun	2:00w	1:00d	D
326.Ed
327.Pp
328The fields that make up a rule line are:
329.Bl -tag -width "LETTER/S"
330.It NAME
331Gives the name of the rule set that contains this line.
332The name must start with a character that is neither
333an ASCII digit nor
334.Dq \-
335nor
336.Dq + .
337To allow for future extensions,
338an unquoted name should not contain characters from the set
339.Dq Ql "!$%&'()*,/:;<=>?@[\]^`{|}~" .
340.It FROM
341Gives the first year in which the rule applies.
342Any signed integer year can be supplied; the proleptic Gregorian calendar
343is assumed, with year 0 preceding year 1.
344Rules can describe times that are not representable as time values,
345with the unrepresentable times ignored; this allows rules to be portable
346among hosts with differing time value types.
347.It TO
348Gives the final year in which the rule applies.
349The word
350.Cm maximum
351(or an abbreviation) means the indefinite future, and the word
352.Cm only
353(or an abbreviation)
354may be used to repeat the value of the
355.Ar FROM
356field.
357.It \-
358Is a reserved field and should always contain
359.Ql \-
360for compatibility with older versions of
361.Nm .
362It was previously known as the
363.Ar TYPE
364field, which could contain values to allow a
365separate script to further restrict in which
366.Dq types
367of years the rule would apply.
368.It IN
369Names the month in which the rule takes effect.
370Month names may be abbreviated.
371.It ON
372Gives the day on which the rule takes effect.
373Recognized forms include:
374.Bl -tag -compact -width "Sun<=25"
375.It 5
376the fifth of the month
377.It lastSun
378the last Sunday in the month
379.It lastMon
380the last Monday in the month
381.It Sun>=8
382first Sunday on or after the eighth
383.It Sun<=25
384last Sunday on or before the 25th
385.El
386.Pp
387A weekday name (e.g.,
388.Ql "Sunday" )
389or a weekday name preceded by
390.Dq "last"
391(e.g.,
392.Ql "lastSunday" )
393may be abbreviated or spelled out in full.
394There must be no white space characters within the
395.Ar ON
396field.
397The
398.Dq <=
399and
400.Dq >=
401constructs can result in a day in the neighboring month;
402for example, the IN-ON combination
403.Dq "Oct Sun>=31"
404stands for the first Sunday on or after October 31,
405even if that Sunday occurs in November.
406.It AT
407Gives the time of day at which the rule takes effect,
408relative to 00:00, the start of a calendar day.
409Recognized forms include:
410.Bl -tag -compact -width "00:19:32.13"
411.It 2
412time in hours
413.It 2:00
414time in hours and minutes
415.It 01:28:14
416time in hours, minutes, and seconds
417.It 00:19:32.13
418time with fractional seconds
419.It 12:00
420midday, 12 hours after 00:00
421.It 15:00
4223 PM, 15 hours after 00:00
423.It 24:00
424end of day, 24 hours after 00:00
425.It 260:00
426260 hours after 00:00
427.It \-2:30
4282.5 hours before 00:00
429.It \-
430equivalent to 0
431.El
432.Pp
433Although
434.Nm
435rounds times to the nearest integer second
436(breaking ties to the even integer), the fractions may be useful
437to other applications requiring greater precision.
438The source format does not specify any maximum precision.
439Any of these forms may be followed by the letter
440.Ql w
441if the given time is local or
442.Dq "wall clock"
443time,
444.Ql s
445if the given time is standard time without any adjustment for daylight saving,
446or
447.Ql u
448(or
449.Ql g
450or
451.Ql z )
452if the given time is universal time;
453in the absence of an indicator,
454local (wall clock) time is assumed.
455These forms ignore leap seconds; for example,
456if a leap second occurs at 00:59:60 local time,
457.Ql "1:00"
458stands for 3601 seconds after local midnight instead of the usual 3600 seconds.
459The intent is that a rule line describes the instants when a
460clock/calendar set to the type of time specified in the
461.Ar AT
462field would show the specified date and time of day.
463.It SAVE
464Gives the amount of time to be added to local standard time when the rule is in
465effect, and whether the resulting time is standard or daylight saving.
466This field has the same format as the
467.Ar AT
468field
469except with a different set of suffix letters:
470.Ql s
471for standard time and
472.Ql d
473for daylight saving time.
474The suffix letter is typically omitted, and defaults to
475.Ql s
476if the offset is zero and to
477.Ql d
478otherwise.
479Negative offsets are allowed; in Ireland, for example, daylight saving
480time is observed in winter and has a negative offset relative to
481Irish Standard Time.
482The offset is merely added to standard time; for example,
483.Nm
484does not distinguish a 10:30 standard time plus an 0:30
485.Ar SAVE
486from a 10:00 standard time plus a 1:00
487.Ar SAVE .
488.It LETTER/S
489Gives the
490.Dq "variable part"
491(for example, the
492.Dq "S"
493or
494.Dq "D"
495in
496.Dq "EST"
497or
498.Dq "EDT" )
499of time zone abbreviations to be used when this rule is in effect.
500If this field is
501.Ql \- ,
502the variable part is null.
503.El
504.Pp
505A zone line has the form
506.Bd -literal -offset indent
507Zone	NAME	STDOFF	RULES	FORMAT	[UNTIL]
508.Ed
509.Pp
510For example:
511.Bd -literal -offset indent
512Zone	Asia/Amman	2:00	Jordan	EE%sT	2017 Oct 27 01:00
513.Ed
514.Pp
515The fields that make up a zone line are:
516.Bl -tag -width "STDOFF"
517.It NAME
518The name of the timezone.
519This is the name used in creating the time conversion information file for the
520timezone.
521It should not contain a file name component
522.Dq ".\&"
523or
524.Dq ".." ;
525a file name component is a maximal substring that does not contain
526.Dq "/" .
527.It STDOFF
528The amount of time to add to UT to get standard time,
529without any adjustment for daylight saving.
530This field has the same format as the
531.Ar AT
532and
533.Ar SAVE
534fields of rule lines, except without suffix letters;
535begin the field with a minus sign if time must be subtracted from UT.
536.It RULES
537The name of the rules that apply in the timezone or,
538alternatively, a field in the same format as a rule-line SAVE column,
539giving the amount of time to be added to local standard time
540and whether the resulting time is standard or daylight saving.
541If this field is
542.Ql \-
543then standard time always applies.
544When an amount of time is given, only the sum of standard time and
545this amount matters.
546.It FORMAT
547The format for time zone abbreviations.
548The pair of characters
549.Ql %s
550is used to show where the
551.Dq "variable part"
552of the time zone abbreviation goes.
553Alternatively, a format can use the pair of characters
554.Ql %z
555to stand for the UT offset in the form
556.Ar \(+- hh ,
557.Ar \(+- hhmm ,
558or
559.Ar \(+- hhmmss ,
560using the shortest form that does not lose information, where
561.Ar hh ,
562.Ar mm ,
563and
564.Ar ss
565are the hours, minutes, and seconds east (+) or west (\-) of UT.
566Alternatively,
567a slash (/)
568separates standard and daylight abbreviations.
569To conform to POSIX, a time zone abbreviation should contain only
570alphanumeric ASCII characters,
571.Ql "+"
572and
573.Ql "\-".
574By convention, the time zone abbreviation
575.Ql "\-00"
576is a placeholder that means local time is unspecified.
577.It UNTIL
578The time at which the UT offset or the rule(s) change for a location.
579It takes the form of one to four fields
580.Ar YEAR Op Ar MONTH Op Ar DAY Op Ar TIME .
581If this is specified,
582the time zone information is generated from the given UT offset
583and rule change until the time specified, which is interpreted using
584the rules in effect just before the transition.
585The month, day, and time of day have the same format as the
586.Ar IN ,
587.Ar ON ,
588and
589.Ar AT
590fields of a rule; trailing fields can be omitted, and default to the
591earliest possible value for the missing fields.
592.IP
593The next line must be a
594.Dq "continuation"
595line; this has the same form as a zone line except that the
596string
597.Dq "Zone"
598and the name are omitted, as the continuation line will
599place information starting at the time specified as the
600.Dq "until"
601information in the previous line in the file used by the previous line.
602Continuation lines may contain
603.Dq "until"
604information, just as zone lines do, indicating that the next line is a further
605continuation.
606.El
607.Pp
608If a zone changes at the same instant that a rule would otherwise take
609effect in the earlier zone or continuation line, the rule is ignored.
610A zone or continuation line
611.Ar L
612with a named rule set starts with standard time by default:
613that is, any of
614.Ar L 's
615timestamps preceding
616.Ar L 's
617earliest rule use the rule in effect after
618.Ar L 's
619first transition into standard time.
620In a single zone it is an error if two rules take effect at the same
621instant, or if two zone changes take effect at the same instant.
622.Pp
623If a continuation line subtracts
624.Ar N
625seconds from the UT offset after a transition that would be
626interpreted to be later if using the continuation line's UT offset and
627rules, the
628.Dq "until"
629time of the previous zone or continuation line is interpreted
630according to the continuation line's UT offset and rules, and any rule
631that would otherwise take effect in the next
632.Ar N
633seconds is instead assumed to take effect simultaneously.
634For example:
635.Bd -literal -offset indent
636# Rule	NAME	FROM	TO	\*-	IN	ON	AT	SAVE	LETTER/S
637Rule	US	1967	2006	-	Oct	lastSun	2:00	0	S
638Rule	US	1967	1973	-	Apr	lastSun	2:00	1:00	D
639
640# Zone\0\0NAME	STDOFF	RULES	FORMAT	[UNTIL]
641Zone\0\0America/Menominee	\*-5:00	\*-	EST	1973 Apr 29 2:00
642	\*-6:00	US	C%sT
643.Ed
644Here, an incorrect reading would be there were two clock changes on 1973-04-29,
645the first from 02:00 EST (\-05) to 01:00 CST (\-06),
646and the second an hour later from 02:00 CST (\-06) to 03:00 CDT (\-05).
647However,
648.Nm
649interprets this more sensibly as a single transition from 02:00 CST (\-05) to
65002:00 CDT (\-05).
651.Pp
652A link line has the form
653.Bd -literal -offset indent
654Link	TARGET	LINK-NAME
655.Ed
656.Pp
657For example:
658.Bd -literal -offset indent
659Link	Europe/Istanbul	Asia/Istanbul
660.Ed
661.Pp
662The
663.Ar TARGET
664field should appear as the
665.Ar NAME
666field in some zone line or as the
667.Ar LINK-NAME
668field in some link line.
669The
670.Ar LINK-NAME
671field is used as an alternative name for that zone;
672it has the same syntax as a zone line's
673.Ar NAME
674field.
675Links can chain together, although the behavior is unspecified if a
676chain of one or more links does not terminate in a Zone name.
677A link line can appear before the line that defines the link target.
678For example:
679.Bd -literal -offset indent
680Link	Greenwich	G_M_T
681Link	Etc/GMT	Greenwich
682Zone	Etc/GMT\0\00\0\0\-\0\0GMT
683.Ed
684.Pp
685The two links are chained together, and G_M_T, Greenwich, and Etc/GMT
686all name the same zone.
687.Pp
688Except for continuation lines,
689lines may appear in any order in the input.
690However, the behavior is unspecified if multiple zone or link lines
691define the same name.
692.Pp
693The file that describes leap seconds can have leap lines and an
694expiration line.
695Leap lines have the following form:
696.Bd -literal -offset indent
697Leap	YEAR	MONTH	DAY	HH:MM:SS	CORR	R/S
698.Ed
699.Pp
700For example:
701.Bd -literal -offset indent
702Leap	2016	Dec	31	23:59:60	+	S
703.Ed
704.Pp
705The
706.Ar YEAR ,
707.Ar MONTH ,
708.Ar DAY ,
709and
710.Ar HH:MM:SS
711fields tell when the leap second happened.
712The
713.Ar CORR
714field
715should be
716.Ql "+"
717if a second was added
718or
719.Ql "\-"
720if a second was skipped.
721The
722.Ar R/S
723field
724should be (an abbreviation of)
725.Dq "Stationary"
726if the leap second time given by the other fields should be interpreted as UTC
727or
728(an abbreviation of)
729.Dq "Rolling"
730if the leap second time given by the other fields should be interpreted as
731local (wall clock) time.
732.Pp
733Rolling leap seconds were implemented back when it was not
734clear whether common practice was rolling or stationary,
735with concerns that one would see
736Times Square ball drops where there'd be a
737.Dq "3... 2... 1... leap... Happy New Year"
738countdown, placing the leap second at
739midnight New York time rather than midnight UTC.
740However, this countdown style does not seem to have caught on,
741which means rolling leap seconds are not used in practice;
742also, they are not supported if the
743.Fl r
744option is used.
745.Pp
746The expiration line, if present, has the form:
747.Bd -literal -offset indent
748Expires	YEAR	MONTH	DAY	HH:MM:SS
749.Ed
750.Pp
751For example:
752.Bd -literal -offset indent
753Expires	2020	Dec	28	00:00:00
754.Ed
755.Pp
756The
757.Ar YEAR ,
758.Ar MONTH ,
759.Ar DAY ,
760and
761.Ar HH:MM:SS
762fields give the expiration timestamp in UTC for the leap second table.
763.Sh "EXTENDED EXAMPLE"
764Here is an extended example of
765.Nm
766input, intended to illustrate many of its features.
767.Bd -literal -offset indent
768# Rule	NAME	FROM	TO	\-	IN	ON	AT	SAVE	LETTER/S
769Rule	Swiss	1941	1942	\-	May	Mon>=1	1:00	1:00	S
770Rule	Swiss	1941	1942	\-	Oct	Mon>=1	2:00	0	\-
771
772Rule	EU	1977	1980	\-	Apr	Sun>=1	1:00u	1:00	S
773Rule	EU	1977	only	\-	Sep	lastSun	1:00u	0	\-
774Rule	EU	1978	only	\-	Oct	 1	1:00u	0	\-
775Rule	EU	1979	1995	\-	Sep	lastSun	1:00u	0	\-
776Rule	EU	1981	max	\-	Mar	lastSun	1:00u	1:00	S
777Rule	EU	1996	max	\-	Oct	lastSun	1:00u	0	\-
778
779# Zone	NAME	STDOFF	RULES	FORMAT	[UNTIL]
780Zone	Europe/Zurich	0:34:08	\-	LMT	1853 Jul 16
781		0:29:45.50	\-	BMT	1894 Jun
782		1:00	Swiss	CE%sT	1981
783		1:00	EU	CE%sT
784
785Link	Europe/Zurich	Europe/Vaduz
786.Ed
787.Pp
788In this example, the EU rules are for the European Union
789and for its predecessor organization, the European Communities.
790The timezone is named Europe/Zurich and it has the alias Europe/Vaduz.
791This example says that Zurich was 34 minutes and 8
792seconds east of UT until 1853-07-16 at 00:00, when the legal offset
793was changed to
7947\(de26\(fm22.50\(sd,
795which works out to 0:29:45.50;
796.Nm
797treats this by rounding it to 0:29:46.
798After 1894-06-01 at 00:00 the UT offset became one hour
799and Swiss daylight saving rules (defined with lines beginning with
800.Dq "Rule Swiss")
801apply.
802From 1981 to the present, EU daylight saving rules have
803applied, and the UTC offset has remained at one hour.
804.Pp
805In 1941 and 1942, daylight saving time applied from the first Monday
806in May at 01:00 to the first Monday in October at 02:00.
807The pre-1981 EU daylight-saving rules have no effect
808here, but are included for completeness.
809Since 1981, daylight
810saving has begun on the last Sunday in March at 01:00 UTC.
811Until 1995 it ended the last Sunday in September at 01:00 UTC,
812but this changed to the last Sunday in October starting in 1996.
813.Pp
814For purposes of display,
815.Dq "LMT"
816and
817.Dq "BMT"
818were initially used, respectively.
819Since
820Swiss rules and later EU rules were applied, the time zone abbreviation
821has been CET for standard time and CEST for daylight saving
822time.
823.Sh FILES
824.Bl -tag -width "/usr/share/zoneinfo"
825.It Pa /etc/localtime
826Default local timezone file.
827.It Pa /usr/share/zoneinfo
828Default timezone information directory.
829.El
830.Sh NOTES
831For areas with more than two types of local time,
832you may need to use local standard time in the
833.Ar AT
834field of the earliest transition time's rule to ensure that
835the earliest transition time recorded in the compiled file is correct.
836.Pp
837If,
838for a particular timezone,
839a clock advance caused by the start of daylight saving
840coincides with and is equal to
841a clock retreat caused by a change in UT offset,
842.Nm
843produces a single transition to daylight saving at the new UT offset
844without any change in local (wall clock) time.
845To get separate transitions
846use multiple zone continuation lines
847specifying transition instants using universal time.
848.Sh SEE ALSO
849.Xr tzfile 5 ,
850.Xr zdump 8
851