skip to navigation
skip to content

pytz-convert 0.2.2

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

pytz-convert

Python extension for package pytz.

Badges

docs
info
tests
package
other

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
 
File Type Py Version Uploaded on Size
pytz-convert-0.2.2.tar.gz (md5) Source 2017-12-10 9KB
pytz_convert-0.2.2-py3-none-any.whl (md5) Python Wheel 3.6 2017-12-10 8KB
pytz_convert-0.2.2-py3.6.egg (md5) Python Egg 3.6 2017-12-10 11KB