timezone-tools
Helpers for working with timezone-aware date-times.
This package provides:
TimezoneConverterfor making date-times timezone-aware and converting between timezones.Clockfor getting the current time/date in a specific timezone.
TimezoneConverter
This converter object can be used
to create timezone-aware datetime objects,
to make a naive datetime timezone-aware,
and to localize other timezone-aware datetime objects.
The converter also provides utilities
for converting a datetime into a date in the converter's timezone,
calculating dates and time relative to a datetime,
and rounding a datetime to the nearest increment of time
(e.g. to the nearest half-hour).
Create an instance of the timezone converter by passing it an IANA time zone name.
from timezone_tools import TimezoneConverter
paris_time = TimezoneConverter("Europe/Paris")
For more information about timezone support in Python,
see the documentation for the zoneinfo module.
Clock
This clock object can be used to access the system clock and provides timezone-aware dates and times.
The clock also provides utilities for calculating dates and time relative to the current moment.
Create an instance of the clock by passing it an IANA time zone name.
from timezone_tools import Clock
paris_time = Clock("Europe/Paris")
For more information about timezone support in Python,
see the documentation for the zoneinfo module.
Metadata
Release files for timezone-tools 0.1.0.post1
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 | |
|---|---|---|---|---|
| timezone_tools-0.1.0.post1.tar.gz | 11.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| timezone_tools-0.1.0.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.3 kB
Release files / timezone_tools-0.1.0.post1.tar.gz
| Download URL | timezone_tools-0.1.0.post1.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3545d179ee59f49764810878ea178433519974cc8c112a187e6d9416b289130
|
|
BLAKE2b-256 checksum How to use checksums |
821dcb95e07ac2e5c736736dbba5a4b76f9872b535013205770b8ef3e4f27ce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2025.
Transparency logRelease files / timezone_tools-0.1.0.post1-py3-none-any.whl
| Download URL | timezone_tools-0.1.0.post1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
536fcae45029358d7fa5379d527856c0e34afb855de9ea8629326f60f9c5d6aa
|
|
BLAKE2b-256 checksum How to use checksums |
a21f01f16a533a15c7e4e61984fd8929c038cc61851ca3d3de30c67cdd1462a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2025.
Transparency logSecurity for timezone-tools 0.1.0.post1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for timezone_tools-0.1.0.post1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2025.
Transparency logA 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.