1 .\" $NetBSD: tzselect.8,v 1.5 2013/09/20 19:06:54 christos Exp $
5 tzselect \- select a time zone
22 program asks the user for information about the current location,
23 and outputs the resulting time zone description to standard output.
24 The output is suitable as a value for the TZ environment variable.
26 All interaction with the user is done via standard input and standard error.
30 Instead of asking for continent and then country and then city,
31 ask for selection from time zones whose largest cities
32 are closest to the location with geographical coordinates
34 Use ISO 6709 notation for
36 that is, a latitude immediately followed by a longitude. The latitude
37 and longitude should be signed integers followed by an optional
38 decimal point and fraction: positive numbers represent north and east,
39 negative south and west. Latitudes with two and longitudes with three
40 integer digits are treated as degrees; latitudes with four or six and
41 longitudes with five or seven integer digits are treated as
42 .I "DDMM, DDDMM, DDMMSS,"
54 seconds, with any trailing fractions represent fractional minutes or
57 is present) seconds. The decimal point is that of the current locale.
58 For example, in the (default) C locale,
59 .B "\-c\ +40.689\-074.045"
60 specifies 40.689\(de\|N, 74.045\(de\|W,
61 .B "\-c\ +4041.4\-07402.7"
62 specifies 40\(de\|41.4\(fm\|N, 74\(de\|2.7\(fm\|W, and
63 .B "\-c\ +404121\-0740240"
64 specifies 40\(de\|41\(fm\|21\(sd\|N, 74\(de\|2\(fm\|40\(sd\|W.
67 is not one of the documented forms, the resulting behavior is unspecified.
72 is used, display the closest
74 locations (default 10).
76 Applications should not assume that
78 output matches the user's political preferences.
82 Output help information and exit.
85 Output version information and exit.
86 .SH "ENVIRONMENT VARIABLES"
89 Name of a Posix-compliant
95 Name of the directory containing time zone data files (default:
96 .BR /usr/local/etc/zoneinfo ).
99 \f2TZDIR\fP\f3/iso3166.tab\fP
100 Table of ISO 3166 2-letter country codes and country names.
102 \f2TZDIR\fP\f3/zone.tab\fP
103 Tables of country codes, latitude and longitude, zone names, and
104 descriptive comments.
106 \f2TZDIR\fP\f3/\fP\f2TZ\fP
107 Time zone data file for time zone \f2TZ\fP.
109 The exit status is zero if a time zone was successfully obtained from the user,
112 newctime(3), tzfile(5), zdump(8), zic(8)
113 .\" @(#)tzselect.8 8.2
114 .\" This file is in the public domain, so clarified as of
115 .\" 2009-05-17 by Arthur David Olson.