daterangeparser
daterangeparser copied to clipboard
Python module to parse human-style date ranges (eg. 15th-19th March 2011) to datetimes
>>> start, end = parse("1995-2010") Traceback (most recent call last): File "", line 1, in File "/home/yunus/.conda/envs/py3-env/lib/python3.7/site-packages/daterangeparser/parse_date_range.py", line 276, in parse raise ParseException("Couldn't parse resulting datetime") pyparsing.ParseException: Couldn't parse resulting...
For example "2019-W12" should result in a range of 03-18-2019 to 3-24-2019 (Mon-Sun), and "2019-W12-WE" in the dates spanning the weekend, etc.
Hey! I really appreciate this module. I've forked it and am trying to add support for strings like "Between September 12th and 22nd, 1914." I've gotten this to work by...
I use `1.2` version of the parser and receive such response, that i think is inconsistent with others: ``` from daterangeparser import parse as parse_daterange parse_daterange("to 5Jul2015") >> (datetime.datetime(2015, 7,...