Timezones Library
A Python library and CLI tool for getting current time in different timezones: PST, BST, WAT, CET, and EST.
Installation
pip install timezones-lib
Usage
Python Library
from timezones_lib import get_time_in_timezone, get_all_times
# Get time for specific timezone
pst_time = get_time_in_timezone('PST')
print(f"PST: {pst_time}")
# Get all supported timezones
all_times = get_all_times()
for tz, time in all_times.items():
print(f"{tz}: {time}")
CLI Tool
# Show all timezones
tzlib --all
# Get specific timezone
tzlib --timezone PST
# Show available options
tzlib
Supported Timezones
- PST: Pacific Standard Time (US/Pacific)
- BST: British Summer Time (Europe/London)
- WAT: West Africa Time (Africa/Lagos)
- CET: Central European Time (Europe/Berlin)
- EST: Eastern Standard Time (US/Eastern)
Development
Setup
git clone <repo-url>
cd timezones_lib
pip install -e .
Testing
python -m pytest tests/
Building
python -m build
License
MIT
Metadata
Release files for timezones-lib 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| timezones_lib-1.0.0.tar.gz | 3.4 kB | Without provenance | Details for timezones_lib-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timezones_lib-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for timezones_lib-1.0.0-py3-none-any.whl |
Total release size: 7.3 kB
Release files / timezones_lib-1.0.0.tar.gz
| Download URL | timezones_lib-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2458cedee42f89bae03f6006ab2b6a2fb6f4de616d237b202bad928ee304ecd7
|
|
BLAKE2b-256 checksum How to use checksums |
b2c9c6b6ada17016676e28ae1ff4038033043865683c8a512629feb77d22c2af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / timezones_lib-1.0.0-py3-none-any.whl
| Download URL | timezones_lib-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c90b17e4e8ad91962e60eb1524c0fde2d85bb66008b29e852a99b94e96ca9a49
|
|
BLAKE2b-256 checksum How to use checksums |
69bdface1d11d8843c8584a4c921ff987bccf08302089e8264e02472537b16fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Security for timezones-lib 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.