tz for Mac
tz helps you schedule things across time zones. It's an interactive TUI program that displays time across the time zones of your choosing.
tz — overview
? A time zone helper
tz helps you schedule things across time zones. It's an interactive TUI program that displays time across the time zones of your choosing.
Usage
Run tz with no arguments to show the local time, as well as the UTC time zone. It gets more useful when you pass some time zones to the program, to list those below the local time zone.
For now, you need to select the time zones from the tz_data list. Yes, there are plans to make this friendlier for humans too. You're welcome to file an issue about it. I enjoy reading those.
If you would rather not type the list everytime, you could set an alias for your shell, or use the TZ_LIST environment variable with a semi-colon separated list of tz data zone names, or use a configuration file (see Configuration below).
Check out tz -h for other flags.
The program will adjust to light and dark terminals themes.
Installing
I provide linux/amd64 builds for "official" releases, and you can build from source for your favorite architecture. Kind souls have also packaged the program for other OSes.
Packages
Brew
Brew has a tz package: brew install tz
Archlinux
If you're an Archlinux user, packages are also available: tz follows releases and, tz-git builds the main git branch.
Go
Configuration
The tz program uses standard time zones as described here.
You can specify preferences through a configuration file, an environment variable, or as command arguments.
They are applied in this order, overriding at each subsequent step: Configuration file ~/.config/tz/conf.toml Environment variable TZ_LIST Command line arguments tz UTC
The local time zone is always displayed first.
Configuration File
Configs are read from $HOME/.config/tz/conf.toml.
Time zone ids should reference items from the standard tz database names. Alias them by providing your own name with the name key.
Sample configuration: example-conf.toml
Environment Variable
This method only supports setting time zones. Keymaps must be configured through the configuration file.
Specify time zones to display by setting the TZ_LIST environment variable. For example, to display your local time, the time in California, and the time Paris, set TZ_LIST to US/Pacific;Europe/Paris.
The TZ_LIST environment variable recognizes items from the standard tz database names, but you can alias these, using a special value: use the standard name followed by , and your alias. For example:
If adding this to a shell configuration, remember to export it:
Building
You need a recent-ish release of go with modules support:
Testing
Debug
Contributing
Please do file bugs, and feature requests. I am accepting patches too, those are the best, but please, open an issue first to discuss your changes. ?
License
The GPL3 license.
Copyright (c) 2021-2022 Arnaud Berthomier
Details
命令行时区可视化工具
How to install tz
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2025-02-14; current version v0.8.0, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v0.8.0 | 2025-02-14 | Stable | 1.3 MB | Download | Download | Download |
| v0.7.0 | 2024-01-10 | Stable | 1.8 MB | Download | Download | Download |
| v0.6.3 | 2023-01-16 | Stable | 1.7 MB | Download | Download | Download |
| v0.6.2 | 2022-12-02 | Stable | — | — | — | Download |
| v0.6.1 | 2021-10-14 | Stable | — | — | — | Download |
| v0.6 | 2021-10-14 | Stable | — | — | — | Download |
| v0.5 | 2021-04-01 | Stable | — | — | — | Download |
| v0.4 | 2021-03-16 | Stable | — | — | — | Download |
| v0.3 | 2021-03-04 | Stable | — | — | — | Download |
| v0.2 | 2021-02-13 | Stable | — | — | — | Download |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Apple silicon · macOS 14 Sonoma
- Apple silicon · macOS 13 Ventura
- Intel · macOS 14 Sonoma
- Intel · macOS 13 Ventura
- Linux · ARM64
- Linux · x86_64
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| tz | v0.8.0 | GPL-3.0-or-later | CLI | 20 |
| azion | 4.24.0-dev.20 | MIT | CLI | 22 |
| release-it | 21.1.2 | MIT | CLI | 32 |
| openssl@4 | openssl-4.1.0 | Apache-2.0 | CLI | 494,798 |
Similar apps: Command-line Tools
azion
Efficient creation and management of applications on Azion Edge Platform.release-it
? Generic CLI tool to automate versioning and package publishing-related tasks: Bump version…openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratiopkgconf
pkgconf is a program which helps to configure compiler and linker flags for development…node
Node.js is an open-source, cross-platform JavaScript runtime environment.Categories: Command-line Tools