Name
zic
Synopsis
zic [options] [files]System administration command. Create time conversion information files from the file or files specified. If the specified file is -, read information from standard input.
Options
- -d directory
Place the newly created files in directory. Default is /usr/local/etc/zoneinfo.
- -l timezone
Specify a timezone to use for local time. zic links the zone information for timezone with the zone localtime.
- -p timezone
Set the default rules for handling POSIX-format environment variables to the zone name specified by timezone.
- -s
Store time values only if they are the same when signed as when unsigned.
- -v
Verbose mode. Include extra error checking and warnings.
- -y command
Check year types with command. Default is yearistype.
- -L file
Consult file for information about leap seconds.
The source files for zic should be formatted as a sequence of rule lines, zone lines, and link lines. An optional file containing leap-second rules can be specified on the command line. Rule lines describe how time should be calculated. They describe changes in time, daylight savings time, and any other changes that might affect a particular time zone. Zone lines specify which rules apply to a given zone. Link lines link similar zones together. Leap lines describe the exact time when leap seconds should be added or subtracted. Each of these lines is made up of fields. Fields are separated from one another by any number of whitespace characters. Comment lines are preceded by #. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access