]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man8/tzselect.8
share/mk/: build-html: Don't build mbind.2 and set_mempolicy.2
[thirdparty/man-pages.git] / man8 / tzselect.8
CommitLineData
bab8324d
PE
1.\" This file is in the public domain, so clarified as of
2.\" 2009-05-17 by Arthur David Olson.
1349d7ca 3.TH tzselect 8 "" "Time Zone Database"
fea681da 4.SH NAME
5b0dc1ba 5tzselect \- select a timezone
fea681da 6.SH SYNOPSIS
bab8324d
PE
7.ie \n(.g .ds - \f(CR-\fP
8.el .ds - \-
9.ds d " degrees
10.ds m " minutes
11.ds s " seconds
12.ds _ " \&
13.if t \{\
14. if \n(.g .if c \(de .if c \(fm .if c \(sd \{\
15. ds d \(de
16. ds m \(fm
17. ds s \(sd
18. ds _ \|
19. \}
20.\}
fea681da 21.B tzselect
bab8324d
PE
22[
23.B \*-c
24.I coord
25] [
26.B \*-n
27.I limit
28] [
29.B \*-\*-help
30] [
31.B \*-\*-version
32]
fea681da
MK
33.SH DESCRIPTION
34The
35.B tzselect
36program asks the user for information about the current location,
bab8324d
PE
37and outputs the resulting timezone to standard output.
38The output is suitable as a value for the TZ environment variable.
79bd8a7a 39.PP
fea681da 40All interaction with the user is done via standard input and standard error.
bab8324d
PE
41.SH OPTIONS
42.TP
43.BI "\*-c " coord
44Instead of asking for continent and then country and then city,
45ask for selection from time zones whose largest cities
46are closest to the location with geographical coordinates
47.I coord.
48Use ISO 6709 notation for
49.I coord,
50that is, a latitude immediately followed by a longitude. The latitude
51and longitude should be signed integers followed by an optional
52decimal point and fraction: positive numbers represent north and east,
53negative south and west. Latitudes with two and longitudes with three
54integer digits are treated as degrees; latitudes with four or six and
55longitudes with five or seven integer digits are treated as
56.I "DDMM, DDDMM, DDMMSS,"
57or
58.I DDDMMSS
59representing
60.I DD
61or
62.I DDD
63degrees,
64.I MM
65minutes,
66and zero or
67.I SS
68seconds, with any trailing fractions represent fractional minutes or
69(if
70.I SS
71is present) seconds. The decimal point is that of the current locale.
72For example, in the (default) C locale,
73.B "\*-c\ +40.689\*-074.045"
74specifies 40.689\*d\*_N, 74.045\*d\*_W,
75.B "\*-c\ +4041.4\*-07402.7"
76specifies 40\*d\*_41.4\*m\*_N, 74\*d\*_2.7\*m\*_W, and
77.B "\*-c\ +404121\*-0740240"
78specifies 40\*d\*_41\*m\*_21\*s\*_N, 74\*d\*_2\*m\*_40\*s\*_W.
79If
80.I coord
81is not one of the documented forms, the resulting behavior is unspecified.
82.TP
83.BI "\*-n " limit
84When
85.B \*-c
86is used, display the closest
87.I limit
88locations (default 10).
89.TP
90.B "\*-\*-help"
91Output help information and exit.
92.TP
93.B "\*-\*-version"
94Output version information and exit.
95.SH "ENVIRONMENT VARIABLES"
96.TP
97\f3AWK\fP
79bd8a7a 98Name of a POSIX-compliant
bab8324d 99.B awk
fea681da
MK
100program (default:
101.BR awk ).
102.TP
bab8324d 103\f3TZDIR\fP
5b0dc1ba 104Name of the directory containing timezone data files (default:
bab8324d 105.BR /usr/share/zoneinfo ).
fea681da
MK
106.SH FILES
107.TP
bab8324d 108\f2TZDIR\fP\f3/iso3166.tab\fP
fea681da
MK
109Table of ISO 3166 2-letter country codes and country names.
110.TP
bab8324d
PE
111\f2TZDIR\fP\f3/zone1970.tab\fP
112Table of country codes, latitude and longitude, timezones, and
fea681da
MK
113descriptive comments.
114.TP
bab8324d
PE
115\f2TZDIR\fP\f3/\fP\f2TZ\fP
116Timezone data file for timezone \f2TZ\fP.
117.SH "EXIT STATUS"
118The exit status is zero if a timezone was successfully obtained from the user,
119nonzero otherwise.
120.SH "SEE ALSO"
121newctime(3), tzfile(5), zdump(8), zic(8)
122.SH NOTES
123Applications should not assume that
124.BR tzselect 's
125output matches the user's political preferences.