Skip to main content

Extension of Python package pytz providing functions for converting timezone names, abbreviations, and offsets.

Project description

pytz-convert

Python extension for package pytz.

Badges

docs

Documentation Status License Status

info

Hit Count Contributors

tests

Travis-CI Build Status Code Coverage Status

package

PyPI Package latest release Supported versions

other

Requirements Status

Install

pip install pytz-convert

Architecture

pytz-convert is an extension of the pytz providing functions for converting timezone names, abbreviations, and offsets.

Functions

  • convert_bing_ads_tz: Convert Bing timezone name to Standard timezone name.

  • convert_tz_abbrev_to_tz_hours(): Convert timezone abbreviation to timezone hours.

  • convert_tz_abbrev_to_tz_offset(): Convert timezone abbreviation to timezone offset.

  • convert_tz_abbrev_to_tz_seconds(): Convert timezone abbreviation to timezone seconds.

  • convert_tz_hours_to_tz_offset(): Convert timezone hours into timezone offset.

  • convert_tz_name_to_date_tz_abbrev(): Convert timezone name + date to timezone abbreviation.

  • convert_tz_name_to_date_tz_offset(): Convert timezone name + date to timezone offset.

  • convert_tz_name_to_now_tz_abbrev(): Convert timezone name + current date to current timezone abbreviation.

  • convert_tz_name_to_now_tz_offset(): Convert timezone name + current date to current timezone offset.

  • convert_tz_offset_and_date_to_tz_name(): Convert timezone offset + date to timezone name.

  • convert_tz_offset_to_now_tz_abbrev(): Convert timezone offset + current date to current timezone abbreviation.

  • convert_tz_offset_to_tz_hours(): Convert timezone offset to hours.

  • convert_tz_offset_to_tz_minutes(): Convert timezone offset to minutes.

  • convert_tz_offset_to_tz_seconds(): Convert timezone offset to seconds.

  • parse_gmt_offset_timezone(): Parse GMT string into timezone name and timezone offset.

  • validate_tz_abbrev(): Validate timezone abbreviation.

  • validate_tz_name(): Validate timezone name.

Requirements

pytz-convert module is built upon Python 3 and has dependencies upon several Python modules available within Python Package Index PyPI.

make install-requirements

or

python3 -m pip uninstall --yes --no-input -r requirements.txt
python3 -m pip install --upgrade -r requirements.txt

Dependencies

Release History

0.2.0 (2017-12-10)

  • readthedocs.org

0.1.0 (2017-11-25)

  • README

  • Tests

0.0.5 (2017-06-15)

  • Add BING_TIMEZONES_TO_PREFERRED dict that maps bing tz names to pytz tz names

  • Add convert_bing_ads_tz function

0.0.1 (2016-11-17)

  • Initial release

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

pytz-convert-0.2.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distributions

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

pytz_convert-0.2.2-py3.6.egg (12.0 kB view details)

Uploaded Egg

pytz_convert-0.2.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pytz-convert-0.2.2.tar.gz.

File metadata

  • Download URL: pytz-convert-0.2.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytz-convert-0.2.2.tar.gz
Algorithm Hash digest
SHA256 58d3438e3cb9d4b16a91b02ef3d03d81d96eeb1bc14035d6b46d9ca76a43a0a2
MD5 fd330de17d898878705475309d669cd7
BLAKE2b-256 f67a0a3f65b7e7d1c1e496e167a5fdf7bea16ad027c97533268c2fb0c3c8652b

See more details on using hashes here.

File details

Details for the file pytz_convert-0.2.2-py3.6.egg.

File metadata

File hashes

Hashes for pytz_convert-0.2.2-py3.6.egg
Algorithm Hash digest
SHA256 ed678f09a316ef65c4174b6c049425198d9234491736fcb40ed6a637e3667e3e
MD5 36620de47f4324eaf86f47329da1d883
BLAKE2b-256 7c71956f38bc5bebb1cf48852ee53cb756adfdbdae51e29428017c21e7605e79

See more details on using hashes here.

File details

Details for the file pytz_convert-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytz_convert-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22147947a15af9f2feaedeb9c6d519cddc1b7cca9a828e7952bd13da1d0d147b
MD5 37736a946fb4e214a03b87608c412c6c
BLAKE2b-256 62ac0d6687d056324c2f65b4f912911b1ba12d77ea197f6af2a445d525ff4215

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