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