wenhengqiu / tz

🌐 A time zone helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌐 A time zone helper

tz helps you schedule things across time zones. It is an interactive TUI program that displays time across a few time zones of your choosing.

Usage

Simply run tz with no arguments to show the local time, as well as the UTC time zone. It gets more interesting once you set the TZ_LIST environment variable with a comma-separated list of tz data zone names.

The program will adjust to light and dark terminals themes.

Installing

The simplest thing is probably to grab a release, but no one will be harmed if you build from source, as only linux/amd64 builds are provided for now.

Packages

If you're an Archlinux user, packages are also available:

  • tz follows releases and,
  • tz-git builds the main git branch.

Configuration

Zone Alias

tz is configured only through TZ_LIST, and that limits us to the tz database names, but you can alias these names using a special value: the tz name followed by ; and your alias:

TZ_LIST="Europe/Paris;EMEA office,US/Central;US office"

Building

You need a recent-ish release of go with modules support:

git clone https://github.com/oz/tz
cd tz
go build

Testing

go test -cover

License

The GPL3 license.

Copyright (c) 2021 Arnaud Berthomier

About

🌐 A time zone helper

License:GNU General Public License v3.0


Languages

Language:Go 100.0%