tww/tww/main.py
2021-08-03 10:59:17 +02:00

20 lines
681 B
Python

E_NO_SUCH_TIME = "Time does not exist"
# https://dateparser.readthedocs.io/en/latest/settings.html#settings
PARSER_TYPE_TIMESTAMP = "TIMESTAMP"
PARSER_TYPE_ABSOLUTE_TIME = "ABSOLUTE_TIME"
PARSER_TYPE_RELATIVE_TIME = "RELATIVE_TIME"
PARSER_TYPE_TIMEZONE_TRANSLATION = "TIMEZONE_TRANSLATION"
PARSER_TYPE_TIME_DELTA = "TIME_DELTA"
PARSER_TYPE_TIMEZONE_DIFFERENCE = "TIMEZONE_DIFFERENCE"
PARSER_TYPE_TIME_IN_LOCATION = "TIME_IN_LOCATION"
PARSER_TYPE_TIME_DIFFERENCE = "TIME_DIFFERENCE"
PARSER_TYPE_WORKDAYS = "WORKDAYS"
PARSER_TYPE_DAY_OF_WEEK = "DAY_OF_WEEK"
PARSER_TYPE_TIMEZONE = "TIMEZONE"
PARSER_TYPE_CALENDAR = "CALENDAR"
def parser(type, language, output_fmt):
return None