All Projects → oz → tz

oz / tz

Licence: GPL-3.0 License
🌐 A time zone helper

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to tz

tz
Time zone support for Elixir
Stars: ✭ 73 (-86.17%)
Mutual labels:  timezone, tzdata
intl-format
A wrapper library for PHP to format and internationalize values in messages like sprintf
Stars: ✭ 12 (-97.73%)
Mutual labels:  timezone
compact-timezone-list
Simple array of timezones with their long name, tz code, and UTC offset.
Stars: ✭ 33 (-93.75%)
Mutual labels:  timezone
timezones
Nim timezone library compatible with the standard library.
Stars: ✭ 37 (-92.99%)
Mutual labels:  timezone
cldr-engine
Internationalization and localization in Typescript with Unicode CLDR, batteries included
Stars: ✭ 34 (-93.56%)
Mutual labels:  timezone
Shell-Scripts
Shell scripts about some basic topics, current time, calculator, sorting, restaurant and more.
Stars: ✭ 100 (-81.06%)
Mutual labels:  timezone
llttz
The easy way to get java TimeZone from latitude/longitude
Stars: ✭ 27 (-94.89%)
Mutual labels:  timezone
nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (-93.18%)
Mutual labels:  timezone
setup-timezone
setup timezone for actions
Stars: ✭ 20 (-96.21%)
Mutual labels:  timezone
slack-timezone-bot
🤖⏰ Slack bot to show time in users' timezones
Stars: ✭ 51 (-90.34%)
Mutual labels:  timezone
node-red-contrib-moment
Node-Red Node that produces formatted Date/Time output using the Moment.JS library. Timezone, dst and locale aware.
Stars: ✭ 31 (-94.13%)
Mutual labels:  timezone
timezone
Timezone project providing a simple way to turn location and unix timestamp into timezone and local time.
Stars: ✭ 24 (-95.45%)
Mutual labels:  timezone
geo-sql-database
Continents, Sub-Continents, Countries, States, Cities, Timezones, Currencies SQL database.
Stars: ✭ 30 (-94.32%)
Mutual labels:  timezone
Positional
An elegant and colorful location information app for Android with Compass, Clock, Level, Sun, Moon, Trail Marker and many other features.
Stars: ✭ 72 (-86.36%)
Mutual labels:  timezone
ng2-timezone-selector
A simple Angular module to create a timezone selector using moment-timezone.
Stars: ✭ 12 (-97.73%)
Mutual labels:  timezone
hs-hourglass
efficient and simpler time API for haskell
Stars: ✭ 43 (-91.86%)
Mutual labels:  timezone
TimeZoneLocate
Time zone for locations offline in Swift (iOS).
Stars: ✭ 30 (-94.32%)
Mutual labels:  timezone
gwt-time
Backport of functionality based on JSR-310 to GWT. This is NOT an implementation of JSR-310.
Stars: ✭ 17 (-96.78%)
Mutual labels:  timezone
simple-location
Adds Basic Location Support to Wordpress
Stars: ✭ 26 (-95.08%)
Mutual labels:  timezone
google-photos-timezone-fix
Iterates over photos in given Google Photos album and edits date/time/timezone of each photo in order to fix their order
Stars: ✭ 22 (-95.83%)
Mutual labels:  timezone

🌐 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 (see Configuration below). Command-line arguments trump the environment variable.

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.

Configuration

The tz program uses standard time zones as described here. You should specify what time zones to display by setting the TZ_LIST environment variable. The local time is always displayed first. To display your local time, the time in California, and the time Paris, you have to set TZ_LIST to US/Pacific;Europe/Paris

Zone Alias

The TZ_LIST env. 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:

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

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].