An open API service indexing awesome lists of open source software.

https://github.com/mithro/python-datetime-tz

Drop-in replacement for Python datetime which deeply cares about timezones.
https://github.com/mithro/python-datetime-tz

Last synced: about 1 year ago
JSON representation

Drop-in replacement for Python datetime which deeply cares about timezones.

Awesome Lists containing this project

README

          

datetime_tz module
===============================================================================

A version of the python-datetime module which deeply cares about timezone
(instead of ignoring the problem). The module automatically detects your
current timezone using a variety of different methods.

The module also includes extra functionality;

* Full integration with pytz (just give it the string of the timezone!)
* Proper support for going to/from Unix timestamps (which are in UTC!).
* Smart Parsing which attempts to accept all formats.

This module depends on:

* pytz - For providing the Timezone database.
* dateutil - For providing parsing of many common formats.

For development:
* PyLint - Needed for checking for link.
* defusedxml - Needed for building windows mapping file.

[![Build Status](https://travis-ci.org/mithro/python-datetime-tz.png?branch=master)](https://travis-ci.org/mithro/python-datetime-tz)
[![Coverage Status](https://coveralls.io/repos/mithro/python-datetime-tz/badge.png)](https://coveralls.io/r/mithro/python-datetime-tz)
[![PyPi Version](https://img.shields.io/pypi/v/python-datetime-tz.svg)](https://pypi.org/project/python-datetime-tz/)
[![PyPi Downloads](https://img.shields.io/pypi/dm/python-datetime-tz.svg)](https://pypi.org/project/python-datetime-tz/)