Parse human-readable dates
Go to file
2018-01-19 17:08:56 +03:30
humandate fix: support day of month in the format MONTH DAY 2018-01-19 17:08:25 +03:30
.gitignore Initial commit 2018-01-14 04:44:26 -06:00
LICENSE chore: change LICENSE to MIT 2018-01-14 22:05:28 +03:30
MANIFEST pypi package 2018-01-14 14:29:46 +03:30
README.md chore: extra line README 2018-01-14 15:10:40 +03:30
setup.cfg pypi package 2018-01-14 14:29:46 +03:30
setup.py chore: bump version 2018-01-19 17:08:56 +03:30

humandate

Parse human-readable dates in Python in arbitrary strings.

Usage

Install using pip:

pip install humandate

Use the parse_date function:

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