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.
--12h / --24h --24h Use a 12-hour clock with AM/PM instead of 24-hour.
worldclock-tty --no-sort          # keep the order from config
worldclock-tty --no-offset        # hide UTC offset labels
worldclock-tty --12h              # 12-hour clock with AM/PM
worldclock-tty --no-sort --no-offset

Managing timezones

Timezones are stored in $XDG_CONFIG_HOME/worldclock-tty/config.json (defaults to ~/.config/worldclock-tty/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.5.0.tar.gz (9.1 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.5.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: worldclock_tty-0.5.0.tar.gz
  • Upload date:
  • Size: 9.1 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.5.0.tar.gz
Algorithm Hash digest
SHA256 09252b32e07103460b3276be65cb4ad8d0d1e5474c5b78f0c66f812576eb703b
MD5 47201dc0e3c47ce37547e8ba5b11be72
BLAKE2b-256 d9c38c3ed5e66b2d81aa9503039f17bec051e496e5ff64514c76ae7cd66890f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldclock_tty-0.5.0.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.5.0-py3-none-any.whl.

File metadata

  • Download URL: worldclock_tty-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d0301458e52d0de621288b87f079509db1f72af94099a1853de2ed6723a43b
MD5 c78c744e185c9ab29d9f33e5998a2913
BLAKE2b-256 65258acefa4091597c33ae61615742cf1bb4f0b6dbf94a16353d5d20ea2bc0b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for worldclock_tty-0.5.0-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