1 .\" This file is in the public domain, so clarified as of
2 .\" 2009-05-17 by Arthur David Olson.
3 .TH tzselect 8 "" "Time Zone Database"
5 tzselect \- select a timezone
7 .ie \n(.g .ds - \f(CR-\fP
14 . if \n(.g .if c \(de .if c \(fm .if c \(sd \{\
36 program asks the user for information about the current location,
37 and outputs the resulting timezone to standard output.
38 The output is suitable as a value for the TZ environment variable.
40 All interaction with the user is done via standard input and standard error.
44 Instead of asking for continent and then country and then city,
45 ask for selection from time zones whose largest cities
46 are closest to the location with geographical coordinates
48 Use ISO 6709 notation for
50 that is, a latitude immediately followed by a longitude. The latitude
51 and longitude should be signed integers followed by an optional
52 decimal point and fraction: positive numbers represent north and east,
53 negative south and west. Latitudes with two and longitudes with three
54 integer digits are treated as degrees; latitudes with four or six and
55 longitudes with five or seven integer digits are treated as
56 .I "DDMM, DDDMM, DDMMSS,"
68 seconds, with any trailing fractions represent fractional minutes or
71 is present) seconds. The decimal point is that of the current locale.
72 For example, in the (default) C locale,
73 .B "\*-c\ +40.689\*-074.045"
74 specifies 40.689\*d\*_N, 74.045\*d\*_W,
75 .B "\*-c\ +4041.4\*-07402.7"
76 specifies 40\*d\*_41.4\*m\*_N, 74\*d\*_2.7\*m\*_W, and
77 .B "\*-c\ +404121\*-0740240"
78 specifies 40\*d\*_41\*m\*_21\*s\*_N, 74\*d\*_2\*m\*_40\*s\*_W.
81 is not one of the documented forms, the resulting behavior is unspecified.
86 is used, display the closest
88 locations (default 10).
91 Output help information and exit.
94 Output version information and exit.
95 .SH "ENVIRONMENT VARIABLES"
98 Name of a Posix-compliant
104 Name of the directory containing timezone data files (default:
105 .BR /usr/share/zoneinfo ).
108 \f2TZDIR\fP\f3/iso3166.tab\fP
109 Table of ISO 3166 2-letter country codes and country names.
111 \f2TZDIR\fP\f3/zone1970.tab\fP
112 Table of country codes, latitude and longitude, timezones, and
113 descriptive comments.
115 \f2TZDIR\fP\f3/\fP\f2TZ\fP
116 Timezone data file for timezone \f2TZ\fP.
118 The exit status is zero if a timezone was successfully obtained from the user,
121 newctime(3), tzfile(5), zdump(8), zic(8)
123 Applications should not assume that
125 output matches the user's political preferences.