Parse human-readable dates
Go to file
2018-01-14 14:54:25 +03:30
humandate fix: add yesterday as special case 2018-01-14 14:53:56 +03:30
.gitignore Initial commit 2018-01-14 04:44:26 -06:00
LICENSE Initial commit 2018-01-14 04:44:26 -06:00
MANIFEST pypi package 2018-01-14 14:29:46 +03:30
README.md chore: add README 2018-01-14 14:52:12 +03:30
setup.cfg pypi package 2018-01-14 14:29:46 +03:30
setup.py bump version 2018-01-14 14:54:25 +03:30

humandate

Parse human-readable dates in Python.

Usage

from humandate import parse_date

print(parse_date('next month'))
print(parse_date('I was there an hour ago!'))
print(parse_date('Our event will be held at 12 tomorrow!'))

For more examples see tests.py