How would I get a listing of all the time zones that Apple has on macOS. For example:
- Pacific Daylight Time
- Central European Standard Time
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
macOS uses the same TimeZone layout as FreeBSD.
/usr/share/zoneinfo for each time zone file.
ls /usr/share/zoneinfo Africa Australia Etc MET WET America CET Europe MST posixrules Antarctica CST6CDT Factory MST7MDT zone.tab Arctic EET GMT PST8PDT Asia EST HST Pacific Atlantic EST5EDT Indian SystemV
Traverse the directories to drill down to the timezone you need. Eg. Eastern time would be:
The file is a C library. To get the output of the file, you can use one of two commands -
Use this command line in a Terminal window:
sudo systemsetup -listtimezones