Parse human-readable dates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mahdi Dibaiee ab3e19dabc fix(day-postfix): day postfix can be st, nd, rd, th 5 years ago
humandate fix(day-postfix): day postfix can be st, nd, rd, th 5 years ago
.gitignore Initial commit 5 years ago
LICENSE chore: change LICENSE to MIT 5 years ago
MANIFEST pypi package 5 years ago
README.md chore: extra line README 5 years ago
setup.cfg pypi package 5 years ago
setup.py fix(day-postfix): day postfix can be st, nd, rd, th 5 years ago

README.md

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