Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A drop in replacement for Python's datetime module which cares deeply about timezones.

Project description

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.
  • Genshi - Needed for building windows mapping file.

[![Build Status](]( [![Coverage Status](]( [![PyPi Version](]( [![PyPi Downloads](](

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
python_datetime_tz-0.5.3-py2-none-any.whl (23.4 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jan 27, 2016
python_datetime_tz-0.5.3-py3-none-any.whl (23.4 kB) Copy SHA256 hash SHA256 Wheel 3.4 Jan 27, 2016
python-datetime-tz-0.5.3.tar.gz (42.6 kB) Copy SHA256 hash SHA256 Source None Jan 27, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page