Skip to content

Commit a0dbd4a

Browse files
authored
Merge pull request #131 from aridevelopment-de/dev
Added DatetimeDelta Constant enum to Constant Parser
2 parents cbbb28f + 39b9481 commit a0dbd4a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

datetimeparser/parsermethods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def parse(self, string: str) -> Union[None, Tuple[MethodEnum, RelativeDateTime]]
208208

209209
class ConstantsParser:
210210
# Weekday must go before DatetimeConstants because `friday` contains the word `day`
211-
CONSTANT_KEYWORDS = (*Constants.ALL, *MonthConstants.ALL, *WeekdayConstants.ALL, *DatetimeConstants.ALL)
211+
CONSTANT_KEYWORDS = (*DatetimeDeltaConstants.ALL, *Constants.ALL, *MonthConstants.ALL, *WeekdayConstants.ALL, *DatetimeConstants.ALL)
212212
PREPOSITIONS = ("last", "next", "this", "previous", "at")
213213
PAST_PREPOSITIONS = ("last", "previous")
214214
FUTURE_PREPOSITIONS = ("next", "this")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
long_description_content_type="text/markdown",
1111
long_description=long_description,
1212
packages=['datetimeparser'],
13-
version='0.2rc', # version number: https://peps.python.org/pep-0440/
13+
version='0.3a', # version number: https://peps.python.org/pep-0440/
1414
license='MIT',
1515
description='A parser library built for parsing the english language into datetime objects.',
1616
author='Ari24',

0 commit comments

Comments
 (0)