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.
- Host: GitHub
- URL: https://github.com/mithro/python-datetime-tz
- Owner: mithro
- License: apache-2.0
- Created: 2011-06-05T13:58:24.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T17:26:48.000Z (over 2 years ago)
- Last Synced: 2025-04-04T22:45:56.548Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 211 KB
- Stars: 33
- Watchers: 4
- Forks: 17
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
[](https://travis-ci.org/mithro/python-datetime-tz)
[](https://coveralls.io/r/mithro/python-datetime-tz)
[](https://pypi.org/project/python-datetime-tz/)
[](https://pypi.org/project/python-datetime-tz/)