Skip to main content

py-tzone

py-tzone is a package to find the details for a timezone Like abbreviation or offset of any timezone from pytz import all_timezones.

Installation

This package can either be installed using pip or from a tarball using the standard Python distutils.

If you are installing using pip, you don’t need to download anything as the latest version will be downloaded for you from PyPI:

pip install py-tzone

Example & Usage

Import the method get_tz_details from py_tzone

from py_tzone import get_tz_details

tz_details = get_tz_details('Europe/Amsterdam')
print(tz_details)
{
  'value': 'W. Europe Standard Time',
  'abbr': 'WEDT',
  'offset': 2, 
  'isdst': True,
  'text': '(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
  'utc':['Arctic/Longyearbyen', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Berlin',
        'Europe/Busingen', 'Europe/Gibraltar', 'Europe/Luxembourg','Europe/Malta','Europe/Monaco', 
        'Europe/Oslo', 'Europe/Rome', 'Europe/San_Marino',                                               
        'Europe/Stockholm', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna','Europ/Zurich']
 }

What is UTC

UTC is Coordinated Universal Time. It is a successor to, but distinct from, Greenwich Mean Time (GMT) and the various definitions of Universal Time. UTC is now the worldwide standard for regulating clocks and time measurement.

All other timezones are defined relative to UTC, and include offsets like UTC+0800 - hours to add or subtract from UTC to derive the local time. No daylight saving time occurs in UTC, making it a useful timezone to perform date arithmetic without worrying about the confusion and ambiguities caused by daylight saving time transitions, your country changing its timezone, or mobile computers that roam through multiple timezones.

Metadata

Release files for py-tzone 1.6.1

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

Source distribution (sdist)

Source distribution for py-tzone 1.6.1
File Size Uploaded Provenance Actions
py_tzone-1.6.1.tar.gz 9.0 kB Without provenance Details for py_tzone-1.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-tzone 1.6.1
File Interpreter ABI Platform Actions
py_tzone-1.6.1-py3-none-any.whl Python 3 none any Details for py_tzone-1.6.1-py3-none-any.whl

Total release size: 21.4 kB

Release files / py_tzone-1.6.1.tar.gz

Download URL py_tzone-1.6.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bbee0dd3215e297e9eb90a1a2d954e9476decd8eab5629ca798050a6b64b5a2d
BLAKE2b-256 checksum
How to use checksums
da0481510c4e3e8d0ba26f2c2eb785f4e3ed1e22cb4ddbfcb6a6d4d971c7926a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Release files / py_tzone-1.6.1-py3-none-any.whl

Download URL py_tzone-1.6.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd545ff757d22e2114d25e056e296f0c847db35ca9a600cf7df60716401e27ad
BLAKE2b-256 checksum
How to use checksums
611d66c081dd7de0e7cdfd1b78740af47972439b373ee138d88d2a1ff32b600a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Security for py-tzone 1.6.1

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.

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