akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
634 stars 166 forks source link

datefinder skips future dates #158

Closed TomShu01 closed 3 years ago

TomShu01 commented 3 years ago

Everything works great except that datefinder intentionally skips future dates in my string. I think this is probably a feature to ignore invalid dates, but could you please give the option to allow datefinder to return future dates?

for example, when i pass """timestamp">timestamp 24-Aug-2021 12:00
tools/ 07-Jan-2005 12:40 """ into datefinder. it only returns [datetime.datetime(2005, 1, 7, 12, 40)]

TomShu01 commented 3 years ago

nvm, there's something else wrong with my string