Debian Codegraph @

django/conf/locale/zh_Hans/formats.py

raw
1 # This file is distributed under the same license as the Django package.
2 #
3 # The *_FORMAT strings use the Django date format syntax,
4 # see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
5 DATE_FORMAT = "Y年n月j日" # 2016年9月5日
6 TIME_FORMAT = "H:i" # 20:45
7 DATETIME_FORMAT = "Y年n月j日 H:i" # 2016年9月5日 20:45
8 YEAR_MONTH_FORMAT = "Y年n月" # 2016年9月
9 MONTH_DAY_FORMAT = "m月j日" # 9月5日
10 SHORT_DATE_FORMAT = "Y年n月j日" # 2016年9月5日
11 SHORT_DATETIME_FORMAT = "Y年n月j日 H:i" # 2016年9月5日 20:45
12 FIRST_DAY_OF_WEEK = 1 # 星期一 (Monday)
13
14 # The *_INPUT_FORMATS strings use the Python strftime format syntax,
15 # see https://docs.python.org/library/datetime.html#strftime-strptime-behavior
16 DATE_INPUT_FORMATS = [
17 "%Y/%m/%d", # '2016/09/05'
18 "%Y-%m-%d", # '2016-09-05'
19 "%Y年%n月%j日", # '2016年9月5日'
20 ]
21
22 TIME_INPUT_FORMATS = [
23 "%H:%M", # '20:45'
24 "%H:%M:%S", # '20:45:29'
25 "%H:%M:%S.%f", # '20:45:29.000200'
26 ]
27
28 DATETIME_INPUT_FORMATS = [
29 "%Y/%m/%d %H:%M", # '2016/09/05 20:45'
30 "%Y-%m-%d %H:%M", # '2016-09-05 20:45'
31 "%Y年%n月%j日 %H:%M", # '2016年9月5日 14:45'
32 "%Y/%m/%d %H:%M:%S", # '2016/09/05 20:45:29'
33 "%Y-%m-%d %H:%M:%S", # '2016-09-05 20:45:29'
34 "%Y年%n月%j日 %H:%M:%S", # '2016年9月5日 20:45:29'
35 "%Y/%m/%d %H:%M:%S.%f", # '2016/09/05 20:45:29.000200'
36 "%Y-%m-%d %H:%M:%S.%f", # '2016-09-05 20:45:29.000200'
37 "%Y年%n月%j日 %H:%n:%S.%f", # '2016年9月5日 20:45:29.000200'
38 ]
39
40 DECIMAL_SEPARATOR = "."
41 THOUSAND_SEPARATOR = ""
42 NUMBER_GROUPING = 4