1986-02-15 17:45:02 -05:00
|
|
|
.TH TZCOMP 8
|
|
|
|
|
.SH NAME
|
|
|
|
|
tzcomp \- time zone compiler
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
.B tzcomp
|
1986-02-15 17:50:34 -05:00
|
|
|
[
|
|
|
|
|
.B \-d
|
1986-02-28 21:31:08 -05:00
|
|
|
directory ] [
|
|
|
|
|
.B \-l
|
1986-03-02 18:33:05 -05:00
|
|
|
localtime ] [ filename ... ]
|
1986-02-15 17:45:02 -05:00
|
|
|
.SH DESCRIPTION
|
|
|
|
|
.I Tzcomp
|
|
|
|
|
reads text from the file(s) named on the command line
|
|
|
|
|
and creates the time zone information files specified in this input.
|
|
|
|
|
If a
|
|
|
|
|
.I filename
|
|
|
|
|
is
|
|
|
|
|
.BR ` - ',
|
|
|
|
|
the standard input is read.
|
|
|
|
|
.PP
|
1986-02-28 21:31:08 -05:00
|
|
|
These options are available:
|
1986-02-15 17:50:34 -05:00
|
|
|
.TP
|
1986-03-05 18:52:03 -05:00
|
|
|
.BI "\-d " directory
|
1986-02-15 17:50:34 -05:00
|
|
|
Create time zone information files in the named directory rather than
|
|
|
|
|
in the standard directory named below.
|
1986-02-28 21:31:08 -05:00
|
|
|
.TP
|
1986-03-05 18:52:03 -05:00
|
|
|
.BI "\-l " localtime
|
1986-02-28 21:31:08 -05:00
|
|
|
Use the given time zone as local time.
|
1986-02-15 17:50:34 -05:00
|
|
|
.PP
|
1986-02-28 21:31:08 -05:00
|
|
|
Input lines are made up of fields.
|
|
|
|
|
Fields are separated from one another by any number of white space characters.
|
|
|
|
|
Leading and trailing white space on input lines is ignored.
|
|
|
|
|
An unquoted sharp character (#) in the input introduces a comment which extends
|
|
|
|
|
to the end of the line the sharp character appears on.
|
|
|
|
|
White space characters and sharp characters may be enclosed in double quotes
|
|
|
|
|
(") if they're to be used as part of a field.
|
1986-02-15 17:45:02 -05:00
|
|
|
Any line which is blank (after comment stripping) is ignored.
|
|
|
|
|
Non-blank lines are expected to be of one of three
|
|
|
|
|
types: rule lines, zone lines, and link lines.
|
|
|
|
|
.PP
|
|
|
|
|
A rule line has the form
|
|
|
|
|
.nf
|
|
|
|
|
.B
|
|
|
|
|
.ti +.5i
|
|
|
|
|
.ta \w'Rule 'u +\w'MostNA 'u +\w'FROM 'u +\w'1973 'u +\w'TYPE 'u +\w'Apr 'u +\w'lastSun 'u +\w'2:00 'u +\w'SAVE 'u
|
|
|
|
|
.sp
|
|
|
|
|
Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
|
|
|
|
.sp
|
|
|
|
|
For example:
|
|
|
|
|
.ti +.5i
|
|
|
|
|
.sp
|
|
|
|
|
Rule MostNA 1969 1973 - Apr lastSun 2:00 1:00 D
|
|
|
|
|
.sp
|
|
|
|
|
.fi
|
|
|
|
|
The fields that make up a rule line are:
|
|
|
|
|
.TP
|
|
|
|
|
.B NAME
|
|
|
|
|
Gives the (arbitrary) name of the set of rules this rule is part of.
|
|
|
|
|
.TP
|
|
|
|
|
.B FROM
|
|
|
|
|
Gives the first year in which the rule applies.
|
|
|
|
|
.TP
|
|
|
|
|
.B TO
|
|
|
|
|
Gives the last year in which the rule applies.
|
1986-02-15 18:33:42 -05:00
|
|
|
The word
|
|
|
|
|
.RB ` only '
|
|
|
|
|
may be used to repeat the value of the
|
|
|
|
|
.B
|
|
|
|
|
FROM
|
|
|
|
|
field.
|
1986-02-15 17:45:02 -05:00
|
|
|
.TP
|
|
|
|
|
.B TYPE
|
|
|
|
|
Gives the type of year in which the year applies. If
|
|
|
|
|
.B TYPE
|
|
|
|
|
is
|
|
|
|
|
.B
|
|
|
|
|
"-"
|
1986-03-05 18:52:03 -05:00
|
|
|
then the rule applies in all years between
|
1986-02-15 17:45:02 -05:00
|
|
|
.B FROM
|
|
|
|
|
and
|
|
|
|
|
.B TO
|
|
|
|
|
inclusive.
|
|
|
|
|
If
|
|
|
|
|
.B TYPE
|
|
|
|
|
is something else, then the command
|
|
|
|
|
.B
|
|
|
|
|
.ti +.5i
|
|
|
|
|
years from to type
|
|
|
|
|
.br
|
|
|
|
|
is executed with arguments
|
|
|
|
|
.IR from ,
|
|
|
|
|
.IR to ,
|
|
|
|
|
and
|
|
|
|
|
.IR type
|
1986-03-05 18:52:03 -05:00
|
|
|
taken from the rule line; the rule applies only in those years
|
1986-02-15 17:45:02 -05:00
|
|
|
printed by the
|
|
|
|
|
.I years
|
|
|
|
|
command.
|
|
|
|
|
|
|
|
|
|
The distributed
|
|
|
|
|
.I years
|
1986-03-05 18:52:03 -05:00
|
|
|
command is a shell script that handles year types
|
1986-02-15 17:45:02 -05:00
|
|
|
.B uspres
|
|
|
|
|
(United States presidential election years)
|
|
|
|
|
and
|
|
|
|
|
.B nonpres
|
|
|
|
|
(all other years);
|
|
|
|
|
other year types may be added by changing the script.
|
|
|
|
|
.TP
|
|
|
|
|
.B IN
|
|
|
|
|
Names the month in which the rule takes effect. Month names may be
|
|
|
|
|
abbreviated.
|
|
|
|
|
.TP
|
|
|
|
|
.B ON
|
|
|
|
|
Gives the day on which the rule takes effect.
|
|
|
|
|
Recognized forms include:
|
|
|
|
|
.nf
|
|
|
|
|
.in +.5i
|
|
|
|
|
.sp
|
|
|
|
|
.ta \w'lastSun 'u
|
|
|
|
|
5 the fifth of the month
|
|
|
|
|
lastSun the last Sunday in the month
|
|
|
|
|
lastMon the last Monday in the month
|
|
|
|
|
Sun>=8 first Sunday on or after the eighth
|
|
|
|
|
Sun<=25 last Sunday on or before the 25th
|
|
|
|
|
.fi
|
|
|
|
|
.in -.5i
|
|
|
|
|
.sp
|
|
|
|
|
Names of days of the week may be abbreviated or spelled out in full.
|
|
|
|
|
Note that there must be no spaces within the
|
|
|
|
|
.B ON
|
1986-02-28 21:31:08 -05:00
|
|
|
field.
|
1986-02-15 17:45:02 -05:00
|
|
|
.TP
|
|
|
|
|
.B AT
|
|
|
|
|
Gives the time of day at which the rule takes affect.
|
|
|
|
|
Recognized forms include:
|
|
|
|
|
.nf
|
|
|
|
|
.in +.5i
|
|
|
|
|
.sp
|
|
|
|
|
.ta \w'1:28:13 'u
|
|
|
|
|
2 time in hours
|
|
|
|
|
2:00 time in hours and minutes
|
|
|
|
|
15:00 24-hour format time (for times after noon)
|
|
|
|
|
1:28:14 time in hours, minutes, and seconds
|
|
|
|
|
.fi
|
|
|
|
|
.in -.5i
|
|
|
|
|
.sp
|
1986-03-02 18:33:05 -05:00
|
|
|
Any of these forms may be followed by the letter 'w' if the given time is
|
|
|
|
|
local "wall clock" time or 's' if the given time is local "standard" time;
|
|
|
|
|
in the absence of 'w' or 's', wall clock time is assumed.
|
1986-02-15 17:45:02 -05:00
|
|
|
.TP
|
|
|
|
|
.B SAVE
|
|
|
|
|
Gives the amount of time to be added to local standard time when the rule is in
|
1986-03-05 18:52:03 -05:00
|
|
|
effect (although, of course, the 'w' and 's' suffixes are not used).
|
|
|
|
|
This field has the same format as the
|
1986-02-15 17:45:02 -05:00
|
|
|
.B AT
|
|
|
|
|
field.
|
|
|
|
|
.TP
|
|
|
|
|
.B LETTER/S
|
|
|
|
|
Gives the "variable part" (for example, the 'S' or 'D' in "EST" or "EDT")
|
|
|
|
|
of time zone abbreviations to be used when this rule is in effect.
|
|
|
|
|
If this field is
|
|
|
|
|
.B
|
|
|
|
|
"-",
|
|
|
|
|
the variable part is null.
|
|
|
|
|
.PP
|
|
|
|
|
A zone line has the form
|
|
|
|
|
.sp
|
|
|
|
|
.nf
|
|
|
|
|
.ti +.5i
|
|
|
|
|
.ta \w'Zone 'u +\w'Eastern 'u +\w'GMTOFF 'u +\w'MostNA 'u
|
|
|
|
|
Zone NAME GMTOFF RULES FORMAT
|
|
|
|
|
.sp
|
|
|
|
|
For example:
|
|
|
|
|
.sp
|
|
|
|
|
.ti +.5i
|
|
|
|
|
Zone Eastern -5:00 MostNA E%sT
|
|
|
|
|
.sp
|
|
|
|
|
.fi
|
|
|
|
|
The fields that make up a zone line are:
|
|
|
|
|
.TP
|
|
|
|
|
.B NAME
|
|
|
|
|
The name of the time zone.
|
|
|
|
|
This is the name used in creating the time zone information file for the zone.
|
|
|
|
|
.TP
|
|
|
|
|
.B GMTOFF
|
|
|
|
|
The amount of time to add to GMT to get standard time in this zone.
|
|
|
|
|
This field has the same format as the
|
|
|
|
|
.B AT
|
|
|
|
|
and
|
|
|
|
|
.B SAVE
|
|
|
|
|
fields of rule lines;
|
|
|
|
|
begin the field with a minus sign if time must be subtracted from GMT.
|
|
|
|
|
.TP
|
|
|
|
|
.B RULES
|
|
|
|
|
The name of the rule(s) that apply in the time zone.
|
|
|
|
|
If this field contains
|
|
|
|
|
.B
|
|
|
|
|
"-"
|
|
|
|
|
then standard time always applies in the time zone.
|
|
|
|
|
.TP
|
|
|
|
|
.B FORMAT
|
|
|
|
|
The format for time zone abbreviations in this time zone.
|
1986-03-05 18:52:03 -05:00
|
|
|
The pair of characters
|
1986-02-15 17:45:02 -05:00
|
|
|
.B
|
|
|
|
|
"%s"
|
|
|
|
|
is used to show where the "variable part" of the time zone abbreviation goes.
|
|
|
|
|
.PP
|
|
|
|
|
A link line has the form
|
|
|
|
|
.sp
|
|
|
|
|
.nf
|
|
|
|
|
.ti +.5i
|
1986-02-15 18:33:42 -05:00
|
|
|
.ta \w'Link 'u +\w'LINK-FROM 'u
|
|
|
|
|
Link LINK-FROM LINK-TO
|
1986-02-15 17:45:02 -05:00
|
|
|
.sp
|
|
|
|
|
For example:
|
|
|
|
|
.sp
|
|
|
|
|
.ti +.5i
|
|
|
|
|
Link Eastern EST5EDT
|
|
|
|
|
.sp
|
|
|
|
|
.fi
|
|
|
|
|
The
|
1986-02-15 18:33:42 -05:00
|
|
|
.B LINK-FROM
|
1986-02-15 17:45:02 -05:00
|
|
|
field should appear as the
|
|
|
|
|
.B NAME
|
|
|
|
|
field in some zone line;
|
|
|
|
|
the
|
1986-02-15 18:33:42 -05:00
|
|
|
.B LINK-TO
|
1986-02-15 17:45:02 -05:00
|
|
|
field is used as an alternate name for that zone.
|
|
|
|
|
.PP
|
|
|
|
|
Lines may appear in any order in the input.
|
1986-03-02 18:33:05 -05:00
|
|
|
.SH NOTE
|
|
|
|
|
For areas with more than two types of local time (if indeed there are such),
|
1986-03-05 18:52:03 -05:00
|
|
|
you may get to use local standard time in "AT" field of the earliest
|
|
|
|
|
transition time's rule to ensure that
|
1986-03-02 18:33:05 -05:00
|
|
|
the earliest transition time recorded in the compiled file is correct.
|
1986-02-15 17:45:02 -05:00
|
|
|
.SH FILES
|
1986-02-15 17:50:34 -05:00
|
|
|
/etc/tzdir standard directory used for created files
|
1986-02-15 17:45:02 -05:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
|
settz(3), tzfile(5)
|
|
|
|
|
.. %W%
|