Skip to main content

A terminal-based world clock that displays multiple timezones in real-time.

Project description

worldclock-tty

CI PyPI version Python versions License: MIT DeepWiki

A terminal-based world clock that displays multiple timezones in real-time.

worldclock-tty screenshot

This program is a heavy refactor of a timezone clock I made in 2016.

Installation

uv tool install worldclock-tty

Usage

Run the clock:

worldclock-tty

Press Ctrl+C to exit.

The display shows your local time at the top, followed by all configured timezones in two columns, updated every second.

Options

Flag Default Description
--sort / --no-sort on Sort timezones by UTC offset (lowest first).
--offset / --no-offset on Show the UTC offset (e.g. UTC-3) next to each time.
worldclock-tty --no-sort          # keep the order from config
worldclock-tty --no-offset        # hide UTC offset labels
worldclock-tty --no-sort --no-offset

Managing timezones

Timezones are stored in ~/.config/chronos/config.json. Use IANA timezone names (e.g. America/Chicago, Europe/Paris).

worldclock-tty add America/Chicago       # add a timezone
worldclock-tty remove America/Chicago    # remove a timezone
worldclock-tty list                      # show configured timezones
worldclock-tty reset                     # restore built-in defaults

Default timezones

America/Buenos_Aires, America/Caracas, America/La_Paz, America/Lima, America/Los_Angeles, America/Montevideo, America/New_York, America/Sao_Paulo, Asia/Bangkok, Asia/Dubai, Asia/Hong_Kong, Asia/Istanbul, Asia/Tokyo, Asia/Vladivostok, Atlantic/Bermuda, Atlantic/Canary, Australia/Sydney, Europe/London, Europe/Madrid, Europe/Moscow, Europe/Rome, Pacific/Honolulu.

Requirements

Python 3.10+

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

worldclock_tty-0.4.5.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

worldclock_tty-0.4.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file worldclock_tty-0.4.5.tar.gz.

File metadata

  • Download URL: worldclock_tty-0.4.5.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for worldclock_tty-0.4.5.tar.gz
Algorithm Hash digest
SHA256 16295f2e9ff292cf00120c9393cca06fadbb8b62f63e4f9bded3982e91419015
MD5 748cd49881278593bfce2d925b9022ff
BLAKE2b-256 2233d615a5ee264c62035409cc6f036537d03b598830b724fb989de2f92d0aa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldclock_tty-0.4.5.tar.gz:

Publisher: publish.yml on carlosplanchon/worldclock-tty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file worldclock_tty-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: worldclock_tty-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for worldclock_tty-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 311a11388bfb4f06ad0a0eb1573c865f9910033a3264245882cd48cc9b7361d4
MD5 88348ed4986149b15bddf1b1bf1446e6
BLAKE2b-256 ed1aa3dbc46f8e346e6509a57daf301ef9c05d57cfb11744ccbf3fd8eb2c527c

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldclock_tty-0.4.5-py3-none-any.whl:

Publisher: publish.yml on carlosplanchon/worldclock-tty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page