Debian Codegraph @

django/conf/locale/id/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 = "j N Y"
6 DATETIME_FORMAT = "j N Y, G.i"
7 TIME_FORMAT = "G.i"
8 YEAR_MONTH_FORMAT = "F Y"
9 MONTH_DAY_FORMAT = "j F"
10 SHORT_DATE_FORMAT = "d-m-Y"
11 SHORT_DATETIME_FORMAT = "d-m-Y G.i"
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 "%d-%m-%Y", # '25-10-2009'
18 "%d/%m/%Y", # '25/10/2009'
19 "%d-%m-%y", # '25-10-09'
20 "%d/%m/%y", # '25/10/09'
21 "%d %b %Y", # '25 Oct 2006',
22 "%d %B %Y", # '25 October 2006'
23 "%m/%d/%y", # '10/25/06'
24 "%m/%d/%Y", # '10/25/2009'
25 ]
26
27 TIME_INPUT_FORMATS = [
28 "%H.%M.%S", # '14.30.59'
29 "%H.%M", # '14.30'
30 ]
31
32 DATETIME_INPUT_FORMATS = [
33 "%d-%m-%Y %H.%M.%S", # '25-10-2009 14.30.59'
34 "%d-%m-%Y %H.%M.%S.%f", # '25-10-2009 14.30.59.000200'
35 "%d-%m-%Y %H.%M", # '25-10-2009 14.30'
36 "%d-%m-%y %H.%M.%S", # '25-10-09' 14.30.59'
37 "%d-%m-%y %H.%M.%S.%f", # '25-10-09' 14.30.59.000200'
38 "%d-%m-%y %H.%M", # '25-10-09' 14.30'
39 "%m/%d/%y %H.%M.%S", # '10/25/06 14.30.59'
40 "%m/%d/%y %H.%M.%S.%f", # '10/25/06 14.30.59.000200'
41 "%m/%d/%y %H.%M", # '10/25/06 14.30'
42 "%m/%d/%Y %H.%M.%S", # '25/10/2009 14.30.59'
43 "%m/%d/%Y %H.%M.%S.%f", # '25/10/2009 14.30.59.000200'
44 "%m/%d/%Y %H.%M", # '25/10/2009 14.30'
45 ]
46
47 DECIMAL_SEPARATOR = ","
48 THOUSAND_SEPARATOR = "."
49 NUMBER_GROUPING = 3