ZIC(8) | Maintenance Commands and Procedures | ZIC(8) |
zic - time zone compiler
zic [--version] [-s] [-v] [-l localtime] [-p posixrules]
[-d directory] [-y yearistype] [filename]...
zic reads text from the file(s) named on the command line and creates the time conversion information files specified in this input. If a filename is '−', the standard input is read.
Input lines are made up of fields. Fields are separated by any number of white space characters. Leading and trailing white space on input lines is ignored. A pound sign (#) indicates a comment that extends to the end of the line. White space characters and pound signs can be enclosed within double quotes (" ") if they are to be used as part of a field. Any line that is blank (after comment stripping) is ignored. Non-blank lines are expected to be of one of three types: rule lines, zone lines, or link lines.
A rule line has the form:
For example:
Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
The fields that make up a rule line are:
Rule USA 1969 1973 - Apr lastSun 2:00 1:00 D
NAME
FROM
TO
TYPE
'−'
uspres
nonpres
even
odd
If TYPE is something else, then zic will attempt to execute the command
yearistype year type
to check the type of a year: an exit status of 0 means that the year is of the given type; an exit status of 1 means that the year is not of the given type. The yearistype command is not currently provided in the Solaris environment.
IN
ON
5
lastSun
lastMon
Sun>=8
Sun<=25
Names of days of the week can be abbreviated or spelled out in full. Note: There cannot be spaces within the ON field.
AT
2
2:00
15:00
1:28:14
Any of these forms can be followed by the letter w if the given time is local "wall clock" time; s if the given time is local "standard" time; or u (or g or z) if the given time is universal time. In the absence of an indicator, wall clock time is assumed.
SAVE
LETTER/S
A zone line has the form:
Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
For example:
Zone Australia/SouthWest 9:30 - CST 1992 Mar 15 12:00
8:30 Aus CST
The fields that make up a zone line are:
NAME
GMTOFF
RULES/SAVE
FORMAT
UNTIL
The month, day, and time of day have the same format as the IN, ON, and AT columns of a rule; trailing columns can be omitted, and default to the earliest possible value for the missing columns.
The next line must be a "continuation" line. This line has the same form as a zone line except that the string "Zone" and the name are omitted. The continuation line places information starting at the time specified as the UNTIL field in the previous line in the file used by the previous line. Continuation lines can contain an UNTIL field, just as zone lines do, indicating that the next line is a further continuation.
A link line has the form:
Link LINK-FROM LINK-TO
For example:
Link Europe/Istanbul Asia/Istanbul
The LINK-FROM field should appear as the NAME field in some zone line; the LINK-TO field is used as an alternate name for that zone.
Except for continuation lines, lines can appear in any order in the input.
--version
-d directory
-l localtime
Link localtime localtime
-p posixrules
Link posixrules posixrules
This option is not used by ctime(3C) and mktime(3C) in the Solaris environment.
-s
This option is obsolete and may be removed in a future release.
-v
-y yearistype
filename
/usr/share/lib/zoneinfo
/usr/share/lib/zoneinfo/src
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed* |
* The -s option is obsolete.
For areas with more than two types of local time, you might need to use local standard time in the AT field of the earliest transition time's rule to ensure that the earliest transition time recorded in the compiled file is correct.
If the current timezone file is edited and compiled using the "zic" command, the changes will only be reflected in any new processes that are running. The most accurate way to reflect the changes for the whole system would be a reboot.
January 3, 2006 | OmniOS |