Skip to main content

tzclock

A small live timezone converter for the terminal. Reads your system clock and shows local time alongside a selected timezone, including the date, UTC offset, and date difference. No network requests during use.

Install

Requires Python 3.9 or newer. Once published to PyPI:

python -m pip install tzclock-cli
tzclock

Use python3 on macOS/Linux or py on Windows if that is your Python launcher. For an isolated command-line installation, pipx install tzclock-cli also works if you already use pipx. In a conda environment, activate it and use the same pip command; a separate conda package is not required.

Before publication, install a supplied wheel:

python -m pip install ./dist/tzclock_cli-0.1.0-py3-none-any.whl

Pip creates the tzclock launcher, including an executable launcher on Windows. If your Python scripts directory is not on PATH, use python -m tzclock instead. No copying into system directories or manually setting executable permissions.

Use

tzclock
tzclock --zone Asia/Seoul
tzclock --zone Asia/Seoul --once
tzclock --version
python -m tzclock --zone Europe/Warsaw --once
Key Action
Up / Down Choose a timezone
Enter Apply the highlighted timezone
/ Search all installed IANA timezones
Page Up / Page Down Scroll a page
Backspace Edit search
Esc Leave search and return to favorites
Q Quit outside search

During search, Q is a normal letter; press Esc then Q to quit. Ctrl+C also exits. Quick choices include Warsaw, Seoul, Taipei, Hong Kong, Tokyo and UTC. The menu needs at least 48 columns by 16 rows. Resize the terminal if prompted. Redirected output automatically uses the one-shot text mode.

Platform handling

Dependencies are declared in pyproject.toml, not installed by application code:

dependencies = [
  "tzdata",
  "windows-curses>=2.4; sys_platform == 'win32'",
]

Pip installs windows-curses only on Windows. macOS and Linux use their Python build's standard curses module. The small tzdata package is installed on all platforms as a fallback when no system timezone database is available. Python's zoneinfo normally uses system timezone data first. DST rules come from that database; keep your system and dependencies updated.

Interactive Windows support depends on a windows-curses wheel being available for your Python version and architecture. Conventional CPython installations are the intended target; not every Python implementation or platform is promised. On minimal Unix Python builds without curses, use --once or a Python build with curses support. No administrator privileges are needed inside a virtual environment.

If you previously copied a standalone tzclock into /usr/local/bin, that old file may take precedence. Check command -v tzclock (Windows: where tzclock). Use python -m tzclock --version to verify the installed package directly.

Development

python -m pip install -e .
python -m unittest discover -s tests -v

See PUBLISH.md for the short release procedure. MIT licensed.

Metadata

Release files for tzclock-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tzclock-cli 0.1.0
File Size Uploaded
tzclock_cli-0.1.0.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tzclock-cli 0.1.0
File Interpreter ABI Platform
tzclock_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / tzclock_cli-0.1.0.tar.gz

Download URL tzclock_cli-0.1.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2edbabeb4b42341f8078286ec2c66389a336aa56bfad7a8e566783bb1c6a9f1f
BLAKE2b-256 checksum
How to use checksums
581443777e903f617ccc9f29e81fd34370a0f34fd94f39f32513864111562c67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / tzclock_cli-0.1.0-py3-none-any.whl

Download URL tzclock_cli-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88e6eb7c2b349623a6d82636ce05bfab67b9e7018f2cc1303219934d73af1c3c
BLAKE2b-256 checksum
How to use checksums
e08859b42df93700e7ad6fed233d3a2bde9d1a56b8d90aaccf98cd3887e3e3ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page