{"id":17034977,"url":"https://github.com/justquick/django-human-datetime","last_synced_at":"2025-04-12T13:13:18.940Z","repository":{"id":864432,"uuid":"600988","full_name":"justquick/django-human-datetime","owner":"justquick","description":"Uses the parsedatetime package to parse human readable date/time expressions into Django fields","archived":false,"fork":false,"pushed_at":"2015-06-26T18:15:25.000Z","size":337,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T13:13:14.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justquick.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-08T15:55:22.000Z","updated_at":"2021-01-12T11:21:49.000Z","dependencies_parsed_at":"2022-08-16T11:15:13.813Z","dependency_job_id":null,"html_url":"https://github.com/justquick/django-human-datetime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-human-datetime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-human-datetime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-human-datetime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-human-datetime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justquick","download_url":"https://codeload.github.com/justquick/django-human-datetime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571863,"owners_count":21126522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T08:45:10.099Z","updated_at":"2025-04-12T13:13:18.916Z","avatar_url":"https://github.com/justquick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Human DateTime Parsing\n==============================\n\n:Authors:\n   Justin Quick \u003cjustquick@gmail.com\u003e\n:Version: 0.1\n\nThis tool uses the `parsedatetime package \u003chttp://code.google.com/p/parsedatetime/\u003e`_ to turn human readable form input (like 'tomorrow 7PM') into ``datetime`` objects (like datetime.datetime(2010, 4, 9, 19, ...)).\nThis app requires ``parsedatetime`` and ``pytz``. \nThe app comes with a set of fields to replace Django's own DateTimeField, DateField, and TimeField. Get them by using::\n\n    from humandt.fields import HumanDateTimeField, HumanTimeField, HumanDateField\n    \nThen use them however you like as form fields in your own Django Forms::\n\n    from django.forms import Form\n    \n    class ExampleForm(Form):\n        datetime = HumanDateTimeField(required=False)\n        time = HumanTimeField(required=False)\n        date = HumanDateField(required=False)\n\nExample Project\n================\n\nDownload the most recent sourcecode and start up the development server. Make sure you have the most recent version of django::\n\n    git clone git://github.com/justquick/django-human-datetime.git\n    cd django-human-datetime\n    pip install parsedatetime pytz django\n    python setup.py install\n    cd example_project\n    python manage.py runserver\n    \nIf all goes well it will be available at http://127.0.0.1:8000/. 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.\nTo test the humandt app, stop the server and run this::\n\n    python manage.py test humandt\n    \n    \nTested working with Django 1.5.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fdjango-human-datetime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustquick%2Fdjango-human-datetime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fdjango-human-datetime/lists"}