forked from scrapinghub/dateparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
33 lines (32 loc) · 849 Bytes
/
settings.py
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
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": [],
# Optional language detection
"LANGUAGE_DETECTION_CONFIDENCE_THRESHOLD": 0.5,
# Other settings
"RETURN_TIME_AS_PERIOD": False,
"PARSERS": default_parsers,
"CACHE_SIZE_LIMIT": 1000,
}