Open Uettwillera opened 8 months ago
Similar issue with any number really:
[x for x in datefinder.find_dates(" 7 ")]
returns December 7th, 2023
datefinder.find_dates()
uses dateutil.parser.parse()
, which returns a base date (by default: the current date), overwritten with parsed information.
Default output will always be data you provided + the current date (unless specified otherwise).
This is undocumented behaviour, the base_date
parameter for datefinder.find_dates()
, which can be used to overwrite the base_date
, however, is.
It may be a good idea to add not only the type of object it returns, but also a few words about its specific contents within the documentation.
When sending " 2015 " it returns December 18th, 2015.