Skip to main content

A CLI tool to get current time in different timezones

Project description

TMT - Timezone Tool

A simple CLI tool to get the current time in different timezones.

Installation

pip install tmt-timezone

Usage

tmt -p <timezone>

Supported Timezones

  • PST - Pacific Standard Time (US/Pacific)
  • EST - Eastern Standard Time (US/Eastern)
  • BST - British Summer Time (Europe/London)
  • CET - Central European Time (Europe/Berlin)
  • WAT - West Africa Time (Africa/Lagos)

Examples

# Get current time in PST
tmt -p PST

# Get current time in EST
tmt -p EST

# Get current time in BST
tmt -p BST

Output Format

PST: 2024-08-09 14:30:45 PDT

Development

Setup

  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Install in development mode: pip install -e .

Testing

python -m tmt.cli -p PST

Building

python -m build

Deployment

See setup.md for deployment instructions.

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

tmt_timezone-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

tmt_timezone-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file tmt_timezone-1.0.0.tar.gz.

File metadata

  • Download URL: tmt_timezone-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for tmt_timezone-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d767dd6547bda6c47f46f9f1ff6e090d2c9f6cc7ffddf5acc00d9b4062ddb756
MD5 b95931d60b867fc1ca0585933663d744
BLAKE2b-256 e3e68bfdb36cc259410ad0fa174c4efe1bb35bf5036971202b5541c43cb5229d

See more details on using hashes here.

File details

Details for the file tmt_timezone-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tmt_timezone-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for tmt_timezone-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e24887e657bc18729b70a79d2e22879453b02a9dc0e0b8712a50f7a3dba466d
MD5 c26b340cdfec5ff368f72d6e623eefe5
BLAKE2b-256 0b92915f57e70e30e4c412f7b59e4c352a6be60d2021123415ab6db51650aecc

See more details on using hashes here.

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