tzselect(8)

โœจ tzselect(8) โœจ

System Manager's Manual ๐Ÿ’… okay so this is the page for tzselect, the manual name is tzselect(8) and it's giving helpful tool. ๐ŸŽ€

๐ŸŒธ NAME ๐ŸŒธ

tzselect โ€” select a timezone ๐ŸŒ

๐Ÿงš SYNOPSIS ๐Ÿงš

tzselect [ -c coord ] [ -n limit ] [ --help ] [ --version ]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

okay so tzselect basically asks you a bunch of questions about where you are, then spits out the timezone you picked to standard output. โœจ The result is perfect as a value for the TZ environment variable, so you can literally just drop it in and slay. ๐Ÿ’…

Everything you type gets handled through standard input and standard error, so it's all just you and the program chatting. ๐Ÿซถ

๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

  • -c coord โ€” ngl this one is so cool ๐Ÿ˜ญ Instead of walking through continent, then country, then city, you give it coordinates and it shows you time zones whose biggest cities are closest to that spot. ๐ŸŒˆ The coordinates use ISO 6709 notation, so latitude first, immediately followed by longitude. Both are signed integers with an optional decimal point and fraction: positive means north and east, negative means south and west. Latitudes with two integer digits and longitudes with three are read as degrees. Latitudes with four or six integer digits and longitudes with five or seven are read as DDMM, DDDMM, DDMMSS, or DDDMMSS, meaning DD or DDD degrees, MM minutes, and zero or SS seconds. Any trailing fractions are fractional minutes, or fractional seconds if SS is there. The decimal point is whatever your current locale uses. ๐Ÿ™ˆ In the default C locale, -c +40.689-074.045 means 40.689 degrees N, 74.045 degrees W. -c +4041.4-07402.7 means 40 degrees 41.4 minutes N, 74 degrees 2.7 minutes W. And -c +404121-0740240 means 40 degrees 41 minutes 21 seconds N, 74 degrees 2 minutes 40 seconds W. If your coord isn't one of these documented forms, the behavior is unspecified, so like, don't go there. ๐Ÿ’€
  • -n limit โ€” when you're using -c, this decides how many nearby locations get displayed. The default is 10. ๐Ÿ“
  • --help โ€” shows help info and exits. ๐Ÿซถ
  • --version โ€” shows version info and exits. โœจ

๐ŸŒˆ ENVIRONMENT VARIABLES ๐ŸŒˆ

  • AWK โ€” the name of a POSIX-compliant awk program. Defaults to awk. ๐Ÿ’œ
  • TZDIR โ€” the name of the directory holding the timezone data files. Defaults to /usr/share/zoneinfo. ๐Ÿ—‚๏ธ

๐Ÿ“ FILES ๐Ÿ“

  • TZDIR/iso3166.tab โ€” table of ISO 3166 2-letter country codes and country names. ๐ŸŒŽ
  • TZDIR/zone1970.tab โ€” table of country codes, latitude and longitude, timezones, and descriptive comments. ๐Ÿ“
  • TZDIR/TZ โ€” the timezone data file for timezone TZ. โญ

๐Ÿ”ฅ EXIT STATUS ๐Ÿ”ฅ

If tzselect successfully gets a timezone out of the user, the exit status is zero. Otherwise it's nonzero. ๐Ÿ‘‘

๐Ÿงš SEE ALSO ๐Ÿงš

newctime(3), tzfile(5), zdump(8), zic(8) ๐Ÿ“š

๐Ÿ™ˆ NOTES ๐Ÿ™ˆ

Heads up bestie: applications should not assume that tzselect's output matches the user's political preferences. ๐Ÿšฉ

Source: Time Zone Database. Page: tzselect(8). Stay iconic and keep those timezones straight! ๐Ÿฆ‹๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from
  • debian trixie: manpages 6.9.1-1 ยท GPL-2.0-or-later
  • fedora 43: man-pages 6.13-2.fc43 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • fedora 43: man-pages 6.9.1-5.fc43 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • fedora 44: man-pages 6.13-3.fc44 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • opensuse-leap 16.0: man-pages 6.13-160000.2.2 ยท BSD-3-Clause AND GPL-2.0-or-later AND MIT
  • ubuntu noble: manpages 6.7-2 ยท GPL-2.0-or-later
  • ubuntu questing: manpages 6.9.1-1 ยท GPL-2.0-or-later
  • ๐Ÿ’– girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms