xref: /dragonfly/usr.sbin/tzsetup/tzsetup.8 (revision e1acdbad)
1.\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: src/usr.sbin/tzsetup/tzsetup.8,v 1.11.2.4 2003/03/11 22:31:34 trhodes Exp $
26.\" $DragonFly: src/usr.sbin/tzsetup/tzsetup.8,v 1.3 2004/03/11 12:29:00 hmp Exp $
27.Dd January 24, 1996
28.Dt TZSETUP 8
29.Os
30.Sh NAME
31.Nm tzsetup
32.Nd set local timezone
33.Sh SYNOPSIS
34.Nm
35.Op Fl n
36.Op Ar default
37.Sh DESCRIPTION
38The
39.Nm
40utility reads a database of timezone information and presents a menu
41allowing the user to select a specific zone without knowing the details
42of the database layout.  The selected zone is installed as the system
43default zone.
44The
45.Nm
46utility also determines whether any adjustment is necessary for systems where
47the hardware clock does not keep
48.Tn UTC .
49.Pp
50The following option is available:
51.Bl -tag -offset indent -width Fl
52.It Fl n
53Do not create or copy files.
54.El
55.Pp
56It is possible to short-circuit the menu system by specifying a
57.Ar default
58on the command line; this is intended mainly for pre-configured
59installation scripts.
60.Sh TIMEZONE DATABASE
61The contents of the timezone database are indexed by
62.Pa /usr/share/zoneinfo/zone.tab .
63This file lists, for each timezone data file, the
64.Tn ISO
653166 territory code, approximate geographical coordinates
66(in
67.Tn ISO
686709 format),
69and location within the territory.
70.Pp
71The maintainers of the database maintain the following policies:
72.Bl -enum -offset indent
73.It
74At least one zone for every country or inhabited geographical territory.
75.It
76One zone for every distinct, documented timezone history since the
77beginning of the
78.Ux
79epoch (January 1, 1970,
80.Tn GMT ) .
81.It
82Each zone is named for the most populous city therein.  (Where possible,
83the database includes pre-1970 history for its city.)
84.El
85The source code to the database
86.Pq Pa /usr/src/share/zoneinfo/[a-z]*
87contains many additional comments and documentation references for the
88historically minded.
89.Sh BUGS
90Programs which are already running when
91.Nm
92creates or updates
93.Pa /etc/localtime
94will not reflect the updated timezone.
95When the system is first configured for a
96.Pf non- Tn UTC
97hardware clock, it is necessary to run
98.Xr adjkerntz 8
99(which normally happens as a part of system startup) in order to update
100the kernel's idea of the correct timezone offset.
101.Sh FILES
102.Bl -tag -width /usr/share/zoneinfo/zone.tab -compact
103.It Pa /etc/localtime
104current time zone file
105.It Pa /etc/wall_cmos_clock
106see
107.Xr adjkerntz 8 .
108.It Pa /usr/share/misc/iso3166
109mapping of
110.Tn ISO
1113166 territory codes to names
112.It Pa /usr/share/zoneinfo
113directory for zoneinfo files
114.It Pa /usr/share/zoneinfo/zone.tab
115mapping of timezone file to country and location
116.El
117.Sh SEE ALSO
118.Xr date 1 ,
119.Xr adjtime 2 ,
120.Xr ctime 3 ,
121.Xr timezone 3 ,
122.Xr tzfile 5 ,
123.Xr adjkerntz 8 ,
124.Xr zdump 8 ,
125.Xr zic 8
126.Sh DISCLAIMER
127The representation of certain localities as being associated with certain
128countries and/or territories is for the purposes of identification only,
129and does not imply any endorsement or rejection on the part of the
130.Dx
131Project of the territorial claims of any entity.
132