Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dateparser/data/date_translation_data/en.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@
"at",
"on",
"and",
"from",
"ad",
"m",
"of",
Expand Down Expand Up @@ -820,4 +821,4 @@
"twelve": "12"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
skip: ["at", "on", "and", "ad", "m", "of", "st", "nd", "rd", "th", "about", "the", "just"]
skip: ["at", "on", "and", "from", "ad", "m", "of", "st", "nd", "rd", "th", "about", "the", "just"]
pertain: ["of"]

sentence_splitter_group : 1
Expand Down
1 change: 1 addition & 0 deletions tests/test_freshness_date_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ def test_normalized_relative_dates(self, date_string, ago, period):
in_future={'years': 1, 'months': 1, 'weeks': 1, 'days': 1, 'hours': 1, 'minutes': 1},
period='day'),
param('just now', in_future={'seconds': 0}, period='day'),
param('10 days from now', in_future={'days': 10}, period='day'),

# French dates
param("Aujourd'hui", in_future={'days': 0}, period='day'),
Expand Down