Skip to content

Parsing very short weekday names #1170

Open
@jimbofreedman

Description

@jimbofreedman

(Python 3.10.2/dateparser 1.1.8

>>> DAYS = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
>>> for d in DAYS:
...   print(dateparser.parse(d))
... 
2023-06-19 00:00:00
None
None
None
2023-06-16 00:00:00
2023-06-17 00:00:00
2023-02-19 00:00:00
>>> 

Dateparser can identify Mo/Fr/Sa/Su as days of the week on their own but not Tu/We/Th - is this by design - perhaps because they'd be ambiguous?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions