15a80fb27SWolfram Schneider.\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. 25a80fb27SWolfram Schneider.\" All rights reserved. 38eeb71d7SWolfram Schneider.\" 45a80fb27SWolfram Schneider.\" Redistribution and use in source and binary forms, with or without 55a80fb27SWolfram Schneider.\" modification, are permitted provided that the following conditions 65a80fb27SWolfram Schneider.\" are met: 75a80fb27SWolfram Schneider.\" 1. Redistributions of source code must retain the above copyright 85a80fb27SWolfram Schneider.\" notice, this list of conditions and the following disclaimer. 95a80fb27SWolfram Schneider.\" 2. Redistributions in binary form must reproduce the above copyright 105a80fb27SWolfram Schneider.\" notice, this list of conditions and the following disclaimer in the 115a80fb27SWolfram Schneider.\" documentation and/or other materials provided with the distribution. 128eeb71d7SWolfram Schneider.\" 135a80fb27SWolfram Schneider.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 145a80fb27SWolfram Schneider.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 155a80fb27SWolfram Schneider.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 165a80fb27SWolfram Schneider.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 175a80fb27SWolfram Schneider.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 185a80fb27SWolfram Schneider.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 195a80fb27SWolfram Schneider.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 205a80fb27SWolfram Schneider.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 215a80fb27SWolfram Schneider.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 225a80fb27SWolfram Schneider.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 235a80fb27SWolfram Schneider.\" SUCH DAMAGE. 245a80fb27SWolfram Schneider.\" 2597d92980SPeter Wemm.\" $FreeBSD$ 26d0dff61cSSteve Price.Dd January 24, 1996 278eeb71d7SWolfram Schneider.Dt TZSETUP 8 288eeb71d7SWolfram Schneider.Os FreeBSD 298eeb71d7SWolfram Schneider.Sh NAME 308eeb71d7SWolfram Schneider.Nm tzsetup 318eeb71d7SWolfram Schneider.Nd set local timezone 32342afc34SPhilippe Charnier.Sh SYNOPSIS 338eeb71d7SWolfram Schneider.Nm tzsetup 34342afc34SPhilippe Charnier.Op Fl n 35239e57d0SGarrett Wollman.Op Ar default 36342afc34SPhilippe Charnier.Sh DESCRIPTION 37239e57d0SGarrett WollmanThe 38342afc34SPhilippe Charnier.Nm 39239e57d0SGarrett Wollmanprogram reads a database of timezone information and presents a menu 40239e57d0SGarrett Wollmanallowing the user to select a specific zone without knowing the details 41239e57d0SGarrett Wollmanof the database layout. The selected zone is installed as the system 42239e57d0SGarrett Wollmandefault zone. 43239e57d0SGarrett Wollman.Nm 44239e57d0SGarrett Wollmanalso determines whether any adjustment is necessary for systems where 45239e57d0SGarrett Wollmanthe hardware clock does not keep 46239e57d0SGarrett Wollman.Tn UTC . 47342afc34SPhilippe Charnier.Pp 48342afc34SPhilippe CharnierThe following option is available: 49239e57d0SGarrett Wollman.Bl -tag -offset indent -width Fl 50342afc34SPhilippe Charnier.It Fl n 51239e57d0SGarrett WollmanDo not create or copy files. 52342afc34SPhilippe Charnier.El 53239e57d0SGarrett Wollman.Pp 54239e57d0SGarrett WollmanIt is possible to short-circuit the menu system by specifying a 55239e57d0SGarrett Wollman.Ar default 56239e57d0SGarrett Wollmanon the command line; this is intended mainly for pre-configured 57239e57d0SGarrett Wollmaninstallation scripts. 58239e57d0SGarrett Wollman.Sh TIMEZONE DATABASE 59239e57d0SGarrett WollmanThe contents of the timezone database are indexed by 60239e57d0SGarrett Wollman.Pa /usr/share/zoneinfo/zone.tab . 61239e57d0SGarrett WollmanThis file lists, for each timezone data file, the 62239e57d0SGarrett Wollman.Tn ISO 63239e57d0SGarrett Wollman3166 territory code, approximate geographical coordinates 64239e57d0SGarrett Wollman.Pq in Tn ISO No 6709 format , 65239e57d0SGarrett Wollmanand location within the territory. 66239e57d0SGarrett Wollman.Pp 67239e57d0SGarrett WollmanThe maintainers of the database maintain the following policies: 68239e57d0SGarrett Wollman.Bl -enum -offset indent 69239e57d0SGarrett Wollman.It 70239e57d0SGarrett WollmanAt least one zone for every country or inhabited geographical territory. 71239e57d0SGarrett Wollman.It 72239e57d0SGarrett WollmanOne zone for every distinct, documented timezone history since the 73239e57d0SGarrett Wollmanbeginning of the 74239e57d0SGarrett Wollman.Ux 75239e57d0SGarrett Wollmanepoch (January 1, 1970, 76239e57d0SGarrett Wollman.Tn GMT ) . 77239e57d0SGarrett Wollman.It 78239e57d0SGarrett WollmanEach zone is named for the most populous city therein. (Where possible, 79239e57d0SGarrett Wollmanthe database includes pre-1970 history for its city.) 80239e57d0SGarrett Wollman.El 81239e57d0SGarrett WollmanThe source code to the database 82239e57d0SGarrett Wollman.Pq Pa /usr/src/share/zoneinfo/[a-z]* 83239e57d0SGarrett Wollmancontains many additional comments and documentation references for the 84239e57d0SGarrett Wollmanhistorically minded. 858eeb71d7SWolfram Schneider.Sh BUGS 86239e57d0SGarrett WollmanPrograms which are already running when 87239e57d0SGarrett Wollman.Nm 88239e57d0SGarrett Wollmancreates or updates 89239e57d0SGarrett Wollman.Pa /etc/localtime 90239e57d0SGarrett Wollmanwill not reflect the updated timezone. 91239e57d0SGarrett WollmanWhen the system is first configured for a 92239e57d0SGarrett Wollman.Pf non- Tn UTC 93239e57d0SGarrett Wollmanhardware clock, it is necessary to run 94239e57d0SGarrett Wollman.Xr adjkerntz 8 95239e57d0SGarrett Wollman(which normally happens as a part of system startup) in order to update 96239e57d0SGarrett Wollmanthe kernel's idea of the correct timezone offset. 978eeb71d7SWolfram Schneider.Sh FILES 98239e57d0SGarrett Wollman.Bl -tag -width /usr/share/zoneinfo/zone.tab -compact 998eeb71d7SWolfram Schneider.It Pa /etc/localtime 1008eeb71d7SWolfram Schneidercurrent time zone file 1018eeb71d7SWolfram Schneider.It Pa /etc/wall_cmos_clock 102342afc34SPhilippe Charniersee 103342afc34SPhilippe Charnier.Xr adjkerntz 8 . 104239e57d0SGarrett Wollman.It Pa /usr/share/misc/iso3166 105239e57d0SGarrett Wollmanmapping of 106239e57d0SGarrett Wollman.Tn ISO 107239e57d0SGarrett Wollman3166 territory codes to names 108239e57d0SGarrett Wollman.It Pa /usr/share/zoneinfo 109239e57d0SGarrett Wollmandirectory for zoneinfo files 110239e57d0SGarrett Wollman.It Pa /usr/share/zoneinfo/zone.tab 111239e57d0SGarrett Wollmanmapping of timezone file to country and location 1128eeb71d7SWolfram Schneider.El 1138eeb71d7SWolfram Schneider.Sh SEE ALSO 114bfd34a4aSWolfram Schneider.Xr date 1 , 1158eeb71d7SWolfram Schneider.Xr adjtime 2 , 1168eeb71d7SWolfram Schneider.Xr ctime 3 , 1178eeb71d7SWolfram Schneider.Xr timezone 3 , 1188eeb71d7SWolfram Schneider.Xr tzfile 5 , 119bfd34a4aSWolfram Schneider.Xr adjkerntz 8 , 1208eeb71d7SWolfram Schneider.Xr zdump 8 , 121bb897a87SPhilippe Charnier.Xr zic 8 122239e57d0SGarrett Wollman.Sh DISCLAIMER 123239e57d0SGarrett WollmanThe representation of certain localities as being associated with certain 124239e57d0SGarrett Wollmancountries and/or territories is for the purposes of identification only, 125239e57d0SGarrett Wollmanand does not imply any endorsement or rejection on the part of the 126239e57d0SGarrett Wollman.Tn FreeeBSD 127239e57d0SGarrett WollmanProject of the territorial claims of any entity. 128