forked from scrapinghub/dateparser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
38 lines (37 loc) · 1016 Bytes
/
Copy pathsettings.py
File metadata and controls
38 lines (37 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default_parsers = [
"timestamp",
"relative-time",
"custom-formats",
"absolute-time",
]
settings = {
# Date order
"DATE_ORDER": "MDY",
"PREFER_LOCALE_DATE_ORDER": True,
# Timezone related
"TIMEZONE": "local",
"TO_TIMEZONE": False,
"RETURN_AS_TIMEZONE_AWARE": "default",
# Incomplete dates
"PREFER_DAY_OF_MONTH": "current",
"PREFER_MONTH_OF_YEAR": "current",
"PREFER_DATES_FROM": "current_period",
"RELATIVE_BASE": False,
"STRICT_PARSING": False,
"REQUIRE_PARTS": [],
# Language detection
"SKIP_TOKENS": ["t"],
"NORMALIZE": True,
"DEFAULT_LANGUAGES": [],
"USE_GIVEN_LANGUAGE_ORDER": False,
# Optional language detection
"LANGUAGE_DETECTION_CONFIDENCE_THRESHOLD": 0.5,
# Time span settings
"RETURN_TIME_SPAN": False,
"DEFAULT_START_OF_WEEK": "monday",
"DEFAULT_DAYS_IN_MONTH": 30,
# Other settings
"RETURN_TIME_AS_PERIOD": False,
"PARSERS": default_parsers,
"CACHE_SIZE_LIMIT": 1000,
}