If I run the following:
from dateutil import parser
parser.parse("Wind10_463@Y2014_M11_D19", fuzzy=True)
I get this:
datetime.datetime(2014, 12, 19, 0, 0)
Why is it saying December not November?
If I run the following:
from dateutil import parser
parser.parse("Wind10_463@Y2014_M11_D19", fuzzy=True)
I get this:
datetime.datetime(2014, 12, 19, 0, 0)
Why is it saying December not November?
It's not able to fully parse the structure of your string. When
dateutil.parser.parse
is missing one of the fields, such as the month, it will fill it in with the current month, which is December.From the docs: