1 .\" $FreeBSD: src/usr.sbin/zic/zic.8,v 1.11.2.4 2003/03/11 22:31:35 trhodes Exp $
2 .\" $DragonFly: src/usr.sbin/zic/zic.8,v 1.3 2004/03/11 12:29:00 hmp Exp $
14 .Op Fl L Ar leapsecondfilename
17 .Op Fl p Ar posixrules
24 utility reads text from the file(s) named on the command line
25 and creates the time conversion information files specified in this input.
30 the standard input is read.
32 The following options are available:
33 .Bl -tag -width indent
35 Do not automatically create directories. If the input file(s) specify
36 an output file in a directory which does not already exist, the
37 default behavior is to attempt to create the directory. If
41 will instead error out immediately.
43 Create time conversion information files in the named directory rather than
44 in the standard directory named below.
46 After creating each output file, change its group ownership to the
49 (which can be either a name or a numeric group ID).
50 .It Fl L Ar leapsecondfilename
51 Read leap second information from the file with the given name.
52 If this option is not used,
53 no leap second information appears in output files.
60 utility will act as if the input contained a link line of the form
61 .Bd -literal -offset indent
62 .No "Link timezone localtime
64 (Note that this action has no effect on
66 since the local time zone is specified in
69 .Pa /usr/share/zoneinfo/localtime . )
71 After creating each output file, change its access mode to
73 Both numeric and alphabetic modes are accepted
79 rules when handling POSIX-format
80 time zone environment variables.
83 utility will act as if the input contained a link line of the form
84 .Bd -literal -offset indent
85 .No "Link timezone posixrules
88 After creating each output file, change its owner to
90 (which can be either a name or a numeric user ID).
92 Complain if a year that appears in a data file is outside the range
93 of years representable by
97 Limit time values stored in output files to values that are the same
98 whether they're taken to be signed or unsigned.
99 You can use this option to generate SVVS-compatible files.
105 when checking year types (see below).
108 Input lines are made up of fields.
109 Fields are separated from one another by any number of white space characters.
110 Leading and trailing white space on input lines is ignored.
111 An unquoted sharp character (#) in the input introduces a comment which extends
112 to the end of the line the sharp character appears on.
113 White space characters and sharp characters may be enclosed in double quotes
114 (") if they're to be used as part of a field.
115 Any line that is blank (after comment stripping) is ignored.
116 Non-blank lines are expected to be of one of three types:
117 rule lines, zone lines, and link lines.
119 A rule line has the form:
120 .Dl "Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
122 .Dl "Rule US 1967 1973 \- Apr lastSun 2:00 1:00 D
124 The fields that make up a rule line are:
125 .Bl -tag -width "LETTER/S" -offset indent
127 Give the (arbitrary) name of the set of rules this rule is part of.
129 Give the first year in which the rule applies.
130 Any integer year can be supplied; the Gregorian calendar is assumed.
133 (or an abbreviation) means the minimum year representable as an integer.
136 (or an abbreviation) means the maximum year representable as an integer.
137 Rules can describe times that are not representable as time values,
138 with the unrepresentable times ignored; this allows rules to be portable
139 among hosts with differing time value types.
141 Give the final year in which the rule applies.
150 may be used to repeat the value of the
154 Give the type of year in which the rule applies.
159 then the rule applies in all years between
166 is something else, then
169 .Li yearistype Ar year Ar type
170 to check the type of a year:
171 an exit status of zero is taken to mean that the year is of the given type;
172 an exit status of one is taken to mean that the year is not of the given type.
174 Name the month in which the rule takes effect.
175 Month names may be abbreviated.
177 Give the day on which the rule takes effect.
178 Recognized forms include:
180 .Bl -tag -width lastSun -compact -offset indent
182 the fifth of the month
184 the last Sunday in the month
186 the last Monday in the month
188 first Sunday on or after the eighth
190 last Sunday on or before the 25th
193 Names of days of the week may be abbreviated or spelled out in full.
194 Note that there must be no spaces within the
198 Give the time of day at which the rule takes effect.
199 Recognized forms include:
201 .Bl -tag -width "\&1:28:14" -offset indent -compact
205 time in hours and minutes
207 24-hour format time (for times after noon)
209 time in hours, minutes, and seconds
212 where hour 0 is midnight at the start of the day,
213 and hour 24 is midnight at the end of the day.
214 Any of these forms may be followed by the letter
216 if the given time is local
220 if the given time is local
228 if the given time is universal time;
229 in the absence of an indicator,
230 wall clock time is assumed.
232 Give the amount of time to be added to local standard time when the rule is in
234 This field has the same format as the
237 (although, of course, the
241 suffixes are not used).
253 of time zone abbreviations to be used when this rule is in effect.
256 the variable part is null.
259 A zone line has the form:
260 .Dl "Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
262 .Dl "Zone Australia/Adelaide 9:30 Aus CST 1971 Oct 31 2:00
263 The fields that make up a zone line are:
264 .Bl -tag -width indent
266 The name of the time zone.
267 This is the name used in creating the time conversion information file for the
270 The amount of time to add to UTC to get standard time in this zone.
271 This field has the same format as the
275 fields of rule lines;
276 begin the field with a minus sign if time must be subtracted from UTC.
278 The name of the rule(s) that apply in the time zone or,
279 alternately, an amount of time to add to local standard time.
282 then standard time always applies in the time zone.
284 The format for time zone abbreviations in this time zone.
285 The pair of characters
287 is used to show where the
289 of the time zone abbreviation goes.
292 separates standard and daylight abbreviations.
294 The time at which the UTC offset or the rule(s) change for a location.
295 It is specified as a year, a month, a day, and a time of day.
296 If this is specified,
297 the time zone information is generated from the given UTC offset
298 and rule change until the time specified.
299 The month, day, and time of day have the same format as the IN, ON, and AT
300 columns of a rule; trailing columns can be omitted, and default to the
301 earliest possible value for the missing columns.
303 The next line must be a
305 line; this has the same form as a zone line except that the
308 and the name are omitted, as the continuation line will
309 place information starting at the time specified as the
311 field in the previous line in the file used by the previous line.
312 Continuation lines may contain an
314 field, just as zone lines do, indicating that the next line is a further
318 A link line has the form
319 .Dl "Link LINK-FROM LINK-TO
321 .Dl "Link Europe/Istanbul Asia/Istanbul
324 field should appear as the
326 field in some zone line;
329 field is used as an alternate name for that zone.
331 Except for continuation lines,
332 lines may appear in any order in the input.
334 Lines in the file that describes leap seconds have the following form:
335 .Dl "Leap YEAR MONTH DAY HH:MM:SS CORR R/S
337 .Dl "Leap 1974 Dec 31 23:59:60 + S
344 fields tell when the leap second happened.
350 if a second was added
353 if a second was skipped.
354 .\" There's no need to document the following, since it's impossible for more
355 .\" than one leap second to be inserted or deleted at a time.
356 .\" The C Standard is in error in suggesting the possibility.
357 .\" See Terry J Quinn, The BIPM and the accurate measure of time,
358 .\" Proc IEEE 79, 7 (July 1991), 894-905.
361 .\" if two seconds were added
364 .\" if two seconds were skipped.
368 should be (an abbreviation of)
370 if the leap second time given by the other fields should be interpreted as UTC
374 if the leap second time given by the other fields should be interpreted as
375 local wall clock time.
377 For areas with more than two types of local time,
378 you may need to use local standard time in the
380 field of the earliest transition time's rule to ensure that
381 the earliest transition time recorded in the compiled file is correct.
383 .Bl -tag -width /usr/share/zoneinfo -compact
384 .It /usr/share/zoneinfo
385 standard directory used for created files