1996-08-27 20:04:45 +00:00
|
|
|
.\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
|
|
|
|
.\" All rights reserved.
|
1996-01-24 00:11:58 +00:00
|
|
|
.\"
|
1996-08-27 20:04:45 +00:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
1996-01-24 00:11:58 +00:00
|
|
|
.\"
|
1996-08-27 20:04:45 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1997-06-23 04:52:13 +00:00
|
|
|
.Dd January 24, 1996
|
1996-01-24 00:11:58 +00:00
|
|
|
.Dt TZSETUP 8
|
|
|
|
.Os FreeBSD
|
|
|
|
.Sh NAME
|
|
|
|
.Nm tzsetup
|
1996-02-27 00:27:21 +00:00
|
|
|
.Nd set local timezone
|
1997-10-27 07:49:47 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1997-10-27 07:49:47 +00:00
|
|
|
.Op Fl n
|
1999-02-02 20:26:31 +00:00
|
|
|
.Op Ar default
|
1997-10-27 07:49:47 +00:00
|
|
|
.Sh DESCRIPTION
|
1999-02-02 20:26:31 +00:00
|
|
|
The
|
1997-10-27 07:49:47 +00:00
|
|
|
.Nm
|
1999-02-02 20:26:31 +00:00
|
|
|
program reads a database of timezone information and presents a menu
|
|
|
|
allowing the user to select a specific zone without knowing the details
|
|
|
|
of the database layout. The selected zone is installed as the system
|
|
|
|
default zone.
|
|
|
|
.Nm
|
|
|
|
also determines whether any adjustment is necessary for systems where
|
|
|
|
the hardware clock does not keep
|
|
|
|
.Tn UTC .
|
1997-10-27 07:49:47 +00:00
|
|
|
.Pp
|
|
|
|
The following option is available:
|
1999-02-02 20:26:31 +00:00
|
|
|
.Bl -tag -offset indent -width Fl
|
1997-10-27 07:49:47 +00:00
|
|
|
.It Fl n
|
1999-02-02 20:26:31 +00:00
|
|
|
Do not create or copy files.
|
1997-10-27 07:49:47 +00:00
|
|
|
.El
|
1999-02-02 20:26:31 +00:00
|
|
|
.Pp
|
|
|
|
It is possible to short-circuit the menu system by specifying a
|
|
|
|
.Ar default
|
|
|
|
on the command line; this is intended mainly for pre-configured
|
|
|
|
installation scripts.
|
|
|
|
.Sh TIMEZONE DATABASE
|
|
|
|
The contents of the timezone database are indexed by
|
|
|
|
.Pa /usr/share/zoneinfo/zone.tab .
|
|
|
|
This file lists, for each timezone data file, the
|
|
|
|
.Tn ISO
|
|
|
|
3166 territory code, approximate geographical coordinates
|
|
|
|
.Pq in Tn ISO No 6709 format ,
|
|
|
|
and location within the territory.
|
|
|
|
.Pp
|
|
|
|
The maintainers of the database maintain the following policies:
|
|
|
|
.Bl -enum -offset indent
|
|
|
|
.It
|
|
|
|
At least one zone for every country or inhabited geographical territory.
|
|
|
|
.It
|
|
|
|
One zone for every distinct, documented timezone history since the
|
|
|
|
beginning of the
|
|
|
|
.Ux
|
|
|
|
epoch (January 1, 1970,
|
|
|
|
.Tn GMT ) .
|
|
|
|
.It
|
|
|
|
Each zone is named for the most populous city therein. (Where possible,
|
|
|
|
the database includes pre-1970 history for its city.)
|
|
|
|
.El
|
|
|
|
The source code to the database
|
|
|
|
.Pq Pa /usr/src/share/zoneinfo/[a-z]*
|
|
|
|
contains many additional comments and documentation references for the
|
|
|
|
historically minded.
|
1996-01-24 00:11:58 +00:00
|
|
|
.Sh BUGS
|
1999-02-02 20:26:31 +00:00
|
|
|
Programs which are already running when
|
|
|
|
.Nm
|
|
|
|
creates or updates
|
|
|
|
.Pa /etc/localtime
|
|
|
|
will not reflect the updated timezone.
|
|
|
|
When the system is first configured for a
|
|
|
|
.Pf non- Tn UTC
|
|
|
|
hardware clock, it is necessary to run
|
|
|
|
.Xr adjkerntz 8
|
|
|
|
(which normally happens as a part of system startup) in order to update
|
|
|
|
the kernel's idea of the correct timezone offset.
|
1996-01-24 00:11:58 +00:00
|
|
|
.Sh FILES
|
1999-02-02 20:26:31 +00:00
|
|
|
.Bl -tag -width /usr/share/zoneinfo/zone.tab -compact
|
1996-01-24 00:11:58 +00:00
|
|
|
.It Pa /etc/localtime
|
|
|
|
current time zone file
|
|
|
|
.It Pa /etc/wall_cmos_clock
|
1997-10-27 07:49:47 +00:00
|
|
|
see
|
|
|
|
.Xr adjkerntz 8 .
|
1999-02-02 20:26:31 +00:00
|
|
|
.It Pa /usr/share/misc/iso3166
|
|
|
|
mapping of
|
|
|
|
.Tn ISO
|
|
|
|
3166 territory codes to names
|
|
|
|
.It Pa /usr/share/zoneinfo
|
|
|
|
directory for zoneinfo files
|
|
|
|
.It Pa /usr/share/zoneinfo/zone.tab
|
|
|
|
mapping of timezone file to country and location
|
1996-01-24 00:11:58 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1997-01-20 00:03:00 +00:00
|
|
|
.Xr date 1 ,
|
1996-01-24 00:11:58 +00:00
|
|
|
.Xr adjtime 2 ,
|
|
|
|
.Xr ctime 3 ,
|
|
|
|
.Xr timezone 3 ,
|
|
|
|
.Xr tzfile 5 ,
|
1997-01-20 00:03:00 +00:00
|
|
|
.Xr adjkerntz 8 ,
|
1996-01-24 00:11:58 +00:00
|
|
|
.Xr zdump 8 ,
|
2000-01-23 20:25:01 +00:00
|
|
|
.Xr zic 8
|
1999-02-02 20:26:31 +00:00
|
|
|
.Sh DISCLAIMER
|
|
|
|
The representation of certain localities as being associated with certain
|
|
|
|
countries and/or territories is for the purposes of identification only,
|
|
|
|
and does not imply any endorsement or rejection on the part of the
|
2000-11-14 11:20:58 +00:00
|
|
|
.Fx
|
1999-02-02 20:26:31 +00:00
|
|
|
Project of the territorial claims of any entity.
|