{
    "mode": "man",
    "parameter": "tzselect",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/tzselect/8/json",
    "generated": "2026-10-09T18:31:53Z",
    "synopsis": "tzselect [ -c coord ] [ -n limit ] [ --help ] [ --version ]",
    "sections": {
        "NAME": {
            "content": "tzselect - select a timezone\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tzselect [ -c coord ] [ -n limit ] [ --help ] [ --version ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  tzselect  program  asks the user for information about the current location, and outputs\nthe resulting timezone to standard output.  The output is suitable as a value for the TZ  en‐\nvironment variable.\n\nAll interaction with the user is done via standard input and standard error.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "-c coord\nInstead of asking for continent and then country and then city, ask for selection from\ntime  zones whose largest cities are closest to the location with geographical coordi‐\nnates coord.  Use ISO 6709 notation for coord, that is, a  latitude  immediately  fol‐\nlowed  by  a longitude.  The latitude and longitude should be signed integers followed\nby an optional decimal point and fraction: positive numbers represent north and  east,\nnegative  south and west.  Latitudes with two and longitudes with three integer digits\nare treated as degrees; latitudes with four or six and longitudes with five  or  seven\ninteger  digits  are treated as DDMM, DDDMM, DDMMSS, or DDDMMSS representing DD or DDD\ndegrees, MM minutes, and zero or SS seconds, with  any  trailing  fractions  represent\nfractional  minutes  or  (if SS is present) seconds.  The decimal point is that of the\ncurrent locale.  For example, in the (default) C locale, -c +40.689-074.045  specifies\n40.689  degrees N, 74.045 degrees W, -c +4041.4-07402.7 specifies 40 degrees 41.4 min‐\nutes N, 74 degrees 2.7 minutes W, and -c +404121-0740240 specifies 40 degrees 41  min‐\nutes 21 seconds N, 74 degrees 2 minutes 40 seconds W.  If coord is not one of the doc‐\numented forms, the resulting behavior is unspecified.\n\n-n limit\nWhen -c is used, display the closest limit locations (default 10).\n\n--help Output help information and exit.\n\n--version\nOutput version information and exit.\n",
            "subsections": []
        },
        "ENVIRONMENT VARIABLES": {
            "content": "AWK    Name of a POSIX-compliant awk program (default: awk).\n\nTZDIR  Name of the directory containing timezone data files (default: /usr/share/zoneinfo).\n",
            "subsections": []
        },
        "FILES": {
            "content": "TZDIR/iso3166.tab\nTable of ISO 3166 2-letter country codes and country names.\n\nTZDIR/zone1970.tab\nTable of country codes, latitude and longitude, timezones, and descriptive comments.\n\nTZDIR/TZ\nTimezone data file for timezone TZ.\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The exit status is zero if a timezone was successfully obtained from the user, nonzero other‐\nwise.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "newctime(3), tzfile(5), zdump(8), zic(8)\n",
            "subsections": []
        },
        "NOTES": {
            "content": "Applications  should  not  assume that tzselect's output matches the user's political prefer‐\nences.\n\nTime Zone Database                                                                       tzselect(8)",
            "subsections": []
        }
    },
    "summary": "tzselect - select a timezone",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "newctime",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/newctime/3/json"
        },
        {
            "name": "tzfile",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/tzfile/5/json"
        },
        {
            "name": "zdump",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/zdump/8/json"
        },
        {
            "name": "zic",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/zic/8/json"
        }
    ]
}