3 zic \- time zone compiler
37 \\$3\*(lq\\$1\*(rq\\$2
40 reads text from the file(s) named on the command line
41 and creates the time conversion information files specified in this input.
46 the standard input is read.
48 These options are available:
51 Output version information and exit.
54 Create time conversion information files in the named directory rather than
55 in the standard directory named below.
58 Use the given time zone as local time.
60 will act as if the input contained a link line of the form
63 Link \fItimezone\fP localtime
66 Use the given time zone's rules when handling POSIX-format
67 time zone environment variables.
69 will act as if the input contained a link line of the form
72 Link \fItimezone\fP posixrules
74 .BI "\-L " leapsecondfilename
75 Read leap second information from the file with the given name.
76 If this option is not used,
77 no leap second information appears in output files.
80 Complain if a year that appears in a data file is outside the range
81 of years representable by
84 Also complain if a time of 24:00
85 (which cannot be handled by pre-1998 versions of
90 Limit time values stored in output files to values that are the same
91 whether they're taken to be signed or unsigned.
92 You can use this option to generate SVVS-compatible files.
99 when checking year types (see below).
101 Input lines are made up of fields.
102 Fields are separated from one another by any number of white space characters.
103 Leading and trailing white space on input lines is ignored.
104 An unquoted sharp character (#) in the input introduces a comment which extends
105 to the end of the line the sharp character appears on.
106 White space characters and sharp characters may be enclosed in double quotes
107 (") if they're to be used as part of a field.
108 Any line that is blank (after comment stripping) is ignored.
109 Non-blank lines are expected to be of one of three types:
110 rule lines, zone lines, and link lines.
112 A rule line has the form
115 .ta \w'Rule\0\0'u +\w'NAME\0\0'u +\w'FROM\0\0'u +\w'1973\0\0'u +\w'TYPE\0\0'u +\w'Apr\0\0'u +\w'lastSun\0\0'u +\w'2:00\0\0'u +\w'SAVE\0\0'u
117 Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
122 Rule US 1967 1973 \- Apr lastSun 2:00 1:00 D
125 The fields that make up a rule line are:
128 Gives the (arbitrary) name of the set of rules this rule is part of.
131 Gives the first year in which the rule applies.
132 Any integer year can be supplied; the Gregorian calendar is assumed.
135 (or an abbreviation) means the minimum year representable as an integer.
138 (or an abbreviation) means the maximum year representable as an integer.
139 Rules can describe times that are not representable as time values,
140 with the unrepresentable times ignored; this allows rules to be portable
141 among hosts with differing time value types.
144 Gives the final year in which the rule applies.
153 may be used to repeat the value of the
158 Gives the type of year in which the rule applies.
163 then the rule applies in all years between
170 is something else, then
174 \fByearistype\fP \fIyear\fP \fItype\fP
176 to check the type of a year:
177 an exit status of zero is taken to mean that the year is of the given type;
178 an exit status of one is taken to mean that the year is not of the given type.
181 Names the month in which the rule takes effect.
182 Month names may be abbreviated.
185 Gives the day on which the rule takes effect.
186 Recognized forms include:
191 5 the fifth of the month
192 lastSun the last Sunday in the month
193 lastMon the last Monday in the month
194 Sun>=8 first Sunday on or after the eighth
195 Sun<=25 last Sunday on or before the 25th
199 Names of days of the week may be abbreviated or spelled out in full.
200 Note that there must be no spaces within the
205 Gives the time of day at which the rule takes effect.
206 Recognized forms include:
212 2:00 time in hours and minutes
213 15:00 24-hour format time (for times after noon)
214 1:28:14 time in hours, minutes, and seconds
219 where hour 0 is midnight at the start of the day,
220 and hour 24 is midnight at the end of the day.
221 Any of these forms may be followed by the letter
223 if the given time is local
227 if the given time is local
235 if the given time is universal time;
236 in the absence of an indicator,
237 wall clock time is assumed.
240 Gives the amount of time to be added to local standard time when the rule is in
242 This field has the same format as the
245 (although, of course, the
249 suffixes are not used).
262 of time zone abbreviations to be used when this rule is in effect.
265 the variable part is null.
267 A zone line has the form
271 .ta \w'Zone\0\0'u +\w'Australia/Adelaide\0\0'u +\w'GMTOFF\0\0'u +\w'RULES/SAVE\0\0'u +\w'FORMAT\0\0'u
272 Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
277 Zone Australia/Adelaide 9:30 Aus CST 1971 Oct 31 2:00
280 The fields that make up a zone line are:
283 The name of the time zone.
284 This is the name used in creating the time conversion information file for the
288 The amount of time to add to UTC to get standard time in this zone.
289 This field has the same format as the
293 fields of rule lines;
294 begin the field with a minus sign if time must be subtracted from UTC.
297 The name of the rule(s) that apply in the time zone or,
298 alternately, an amount of time to add to local standard time.
301 then standard time always applies in the time zone.
304 The format for time zone abbreviations in this time zone.
305 The pair of characters
307 is used to show where the
309 of the time zone abbreviation goes.
312 separates standard and daylight abbreviations.
315 The time at which the UTC offset or the rule(s) change for a location.
316 It is specified as a year, a month, a day, and a time of day.
317 If this is specified,
318 the time zone information is generated from the given UTC offset
319 and rule change until the time specified.
320 The month, day, and time of day have the same format as the IN, ON, and AT
321 columns of a rule; trailing columns can be omitted, and default to the
322 earliest possible value for the missing columns.
324 The next line must be a
326 line; this has the same form as a zone line except that the
329 and the name are omitted, as the continuation line will
330 place information starting at the time specified as the
332 field in the previous line in the file used by the previous line.
333 Continuation lines may contain an
335 field, just as zone lines do, indicating that the next line is a further
338 A link line has the form
342 .ta \w'Link\0\0'u +\w'Europe/Istanbul\0\0'u
343 Link LINK-FROM LINK-TO
348 Link Europe/Istanbul Asia/Istanbul
353 field should appear as the
355 field in some zone line;
358 field is used as an alternate name for that zone.
360 Except for continuation lines,
361 lines may appear in any order in the input.
363 Lines in the file that describes leap seconds have the following form:
366 .ta \w'Leap\0\0'u +\w'YEAR\0\0'u +\w'MONTH\0\0'u +\w'DAY\0\0'u +\w'HH:MM:SS\0\0'u +\w'CORR\0\0'u
368 Leap YEAR MONTH DAY HH:MM:SS CORR R/S
373 Leap 1974 Dec 31 23:59:60 + S
382 fields tell when the leap second happened.
388 if a second was added
391 if a second was skipped.
392 .\" There's no need to document the following, since it's impossible for more
393 .\" than one leap second to be inserted or deleted at a time.
394 .\" The C Standard is in error in suggesting the possibility.
395 .\" See Terry J Quinn, The BIPM and the accurate measure of time,
396 .\" Proc IEEE 79, 7 (July 1991), 894-905.
399 .\" if two seconds were added
402 .\" if two seconds were skipped.
406 should be (an abbreviation of)
408 if the leap second time given by the other fields should be interpreted as UTC
412 if the leap second time given by the other fields should be interpreted as
413 local wall clock time.
415 For areas with more than two types of local time,
416 you may need to use local standard time in the
418 field of the earliest transition time's rule to ensure that
419 the earliest transition time recorded in the compiled file is correct.
422 for a particular zone,
423 a clock advance caused by the start of daylight saving
424 coincides with and is equal to
425 a clock retreat caused by a change in UTC offset,
427 produces a single transition to daylight saving at the new UTC offset
428 (without any change in wall clock time).
429 To get separate transitions
430 use multiple zone continuation lines
431 specifying transition instants using universal time.
433 /usr/share/zoneinfo standard directory used for created files
435 newctime(3), tzfile(5), zdump(8)