Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Uses the parsedatetime package to parse human readable date/time expressions into Django fields

Project Description

Django Human DateTime Parsing

Authors:Justin Quick <>

This tool uses the parsedatetime package to turn human readable form input (like ‘tomorrow 7PM’) into datetime objects (like datetime.datetime(2010, 4, 9, 19, …)). This app requires parsedatetime and pytz. The app comes with a set of fields to replace Django’s own DateTimeField, DateField, and TimeField. Get them by using:

from humandt.fields import HumanDateTimeField, HumanTimeField, HumanDateField

Then use them however you like as form fields in your own Django Forms:

from django.forms import Form

class ExampleForm(Form):
    datetime = HumanDateTimeField(required=False)
    time = HumanTimeField(required=False)
    date = HumanDateField(required=False)

Example Project

Download the most recent sourcecode and start up the development server. Make sure you have the most recent version of django:

git clone git://
cd django-human-datetime
pip install parsedatetime pytz django
python install
cd example_project
python runserver

If all goes well it will be available at There is an example form up there that just spits out the parsed date/time input. Look at the example_project.views for useage example. To test the humandt app, stop the server and run this:

python test humandt

Release History

This version
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
(3.2 kB) Copy SHA256 Hash SHA256
Source None Aug 8, 2011

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting