mirror of https://github.com/django/django.git
Fixed #15982 -- Added DATE_INPUT_FORMATS to forms.DateTimeField default input formats.
This commit is contained in:
parent
0f0abc20be
commit
188b003014
|
@ -381,15 +381,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# First day of week, to be used on calendars
|
# First day of week, to be used on calendars
|
||||||
|
|
|
@ -21,11 +21,9 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -29,12 +29,10 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '05.01.2006 04:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '05.01.2006 04:30:59.000200'
|
||||||
'%d.%m.%Y %H.%M', # '05.01.2006 04.30'
|
'%d.%m.%Y %H.%M', # '05.01.2006 04.30'
|
||||||
'%d.%m.%Y %H:%M', # '05.01.2006 04:30'
|
'%d.%m.%Y %H:%M', # '05.01.2006 04:30'
|
||||||
'%d.%m.%Y', # '05.01.2006'
|
|
||||||
'%d. %m. %Y %H:%M:%S', # '05. 01. 2006 04:30:59'
|
'%d. %m. %Y %H:%M:%S', # '05. 01. 2006 04:30:59'
|
||||||
'%d. %m. %Y %H:%M:%S.%f', # '05. 01. 2006 04:30:59.000200'
|
'%d. %m. %Y %H:%M:%S.%f', # '05. 01. 2006 04:30:59.000200'
|
||||||
'%d. %m. %Y %H.%M', # '05. 01. 2006 04.30'
|
'%d. %m. %Y %H.%M', # '05. 01. 2006 04.30'
|
||||||
'%d. %m. %Y %H:%M', # '05. 01. 2006 04:30'
|
'%d. %m. %Y %H:%M', # '05. 01. 2006 04:30'
|
||||||
'%d. %m. %Y', # '05. 01. 2006'
|
|
||||||
'%Y-%m-%d %H.%M', # '2006-01-05 04.30'
|
'%Y-%m-%d %H.%M', # '2006-01-05 04.30'
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
|
|
|
@ -20,15 +20,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = '.'
|
DECIMAL_SEPARATOR = '.'
|
||||||
THOUSAND_SEPARATOR = ','
|
THOUSAND_SEPARATOR = ','
|
||||||
|
|
|
@ -21,7 +21,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -21,7 +21,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# these are the separators for non-monetary numbers. For monetary numbers,
|
# these are the separators for non-monetary numbers. For monetary numbers,
|
||||||
|
|
|
@ -20,15 +20,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -25,15 +25,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = '.'
|
DECIMAL_SEPARATOR = '.'
|
||||||
THOUSAND_SEPARATOR = ','
|
THOUSAND_SEPARATOR = ','
|
||||||
|
|
|
@ -24,15 +24,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = '.'
|
DECIMAL_SEPARATOR = '.'
|
||||||
THOUSAND_SEPARATOR = ','
|
THOUSAND_SEPARATOR = ','
|
||||||
|
|
|
@ -24,15 +24,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = '.'
|
DECIMAL_SEPARATOR = '.'
|
||||||
THOUSAND_SEPARATOR = ','
|
THOUSAND_SEPARATOR = ','
|
||||||
|
|
|
@ -17,11 +17,13 @@ DATE_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d', # '1887-07-26'
|
'%Y-%m-%d', # '1887-07-26'
|
||||||
'%y-%m-%d', # '87-07-26'
|
'%y-%m-%d', # '87-07-26'
|
||||||
'%Y %m %d', # '1887 07 26'
|
'%Y %m %d', # '1887 07 26'
|
||||||
|
'%Y.%m.%d', # '1887.07.26'
|
||||||
'%d-a de %b %Y', # '26-a de jul 1887'
|
'%d-a de %b %Y', # '26-a de jul 1887'
|
||||||
'%d %b %Y', # '26 jul 1887'
|
'%d %b %Y', # '26 jul 1887'
|
||||||
'%d-a de %B %Y', # '26-a de julio 1887'
|
'%d-a de %B %Y', # '26-a de julio 1887'
|
||||||
'%d %B %Y', # '26 julio 1887'
|
'%d %B %Y', # '26 julio 1887'
|
||||||
'%d %m %Y', # '26 07 1887'
|
'%d %m %Y', # '26 07 1887'
|
||||||
|
'%d/%m/%Y', # '26/07/1887'
|
||||||
]
|
]
|
||||||
TIME_INPUT_FORMATS = [
|
TIME_INPUT_FORMATS = [
|
||||||
'%H:%M:%S', # '18:59:00'
|
'%H:%M:%S', # '18:59:00'
|
||||||
|
@ -30,19 +32,15 @@ TIME_INPUT_FORMATS = [
|
||||||
DATETIME_INPUT_FORMATS = [
|
DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '1887-07-26 18:59:00'
|
'%Y-%m-%d %H:%M:%S', # '1887-07-26 18:59:00'
|
||||||
'%Y-%m-%d %H:%M', # '1887-07-26 18:59'
|
'%Y-%m-%d %H:%M', # '1887-07-26 18:59'
|
||||||
'%Y-%m-%d', # '1887-07-26'
|
|
||||||
|
|
||||||
'%Y.%m.%d %H:%M:%S', # '1887.07.26 18:59:00'
|
'%Y.%m.%d %H:%M:%S', # '1887.07.26 18:59:00'
|
||||||
'%Y.%m.%d %H:%M', # '1887.07.26 18:59'
|
'%Y.%m.%d %H:%M', # '1887.07.26 18:59'
|
||||||
'%Y.%m.%d', # '1887.07.26'
|
|
||||||
|
|
||||||
'%d/%m/%Y %H:%M:%S', # '26/07/1887 18:59:00'
|
'%d/%m/%Y %H:%M:%S', # '26/07/1887 18:59:00'
|
||||||
'%d/%m/%Y %H:%M', # '26/07/1887 18:59'
|
'%d/%m/%Y %H:%M', # '26/07/1887 18:59'
|
||||||
'%d/%m/%Y', # '26/07/1887'
|
|
||||||
|
|
||||||
'%y-%m-%d %H:%M:%S', # '87-07-26 18:59:00'
|
'%y-%m-%d %H:%M:%S', # '87-07-26 18:59:00'
|
||||||
'%y-%m-%d %H:%M', # '87-07-26 18:59'
|
'%y-%m-%d %H:%M', # '87-07-26 18:59'
|
||||||
'%y-%m-%d', # '87-07-26'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -21,12 +21,10 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H.%M.%S', # '20.3.2014 14.30.59'
|
'%d.%m.%Y %H.%M.%S', # '20.3.2014 14.30.59'
|
||||||
'%d.%m.%Y %H.%M.%S.%f', # '20.3.2014 14.30.59.000200'
|
'%d.%m.%Y %H.%M.%S.%f', # '20.3.2014 14.30.59.000200'
|
||||||
'%d.%m.%Y %H.%M', # '20.3.2014 14.30'
|
'%d.%m.%Y %H.%M', # '20.3.2014 14.30'
|
||||||
'%d.%m.%Y', # '20.3.2014'
|
|
||||||
|
|
||||||
'%d.%m.%y %H.%M.%S', # '20.3.14 14.30.59'
|
'%d.%m.%y %H.%M.%S', # '20.3.14 14.30.59'
|
||||||
'%d.%m.%y %H.%M.%S.%f', # '20.3.14 14.30.59.000200'
|
'%d.%m.%y %H.%M.%S.%f', # '20.3.14 14.30.59.000200'
|
||||||
'%d.%m.%y %H.%M', # '20.3.14 14.30'
|
'%d.%m.%y %H.%M', # '20.3.14 14.30'
|
||||||
'%d.%m.%y', # '20.3.14'
|
|
||||||
]
|
]
|
||||||
TIME_INPUT_FORMATS = [
|
TIME_INPUT_FORMATS = [
|
||||||
'%H.%M.%S', # '14.30.59'
|
'%H.%M.%S', # '14.30.59'
|
||||||
|
|
|
@ -22,11 +22,9 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d.%m.%Y %H:%M:%S', # Swiss [fr_CH), '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # Swiss [fr_CH), '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # Swiss (fr_CH), '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # Swiss (fr_CH), '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # Swiss (fr_CH), '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # Swiss (fr_CH), '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # Swiss (fr_CH), '25.10.2006'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -23,23 +23,18 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
|
'%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
|
||||||
'%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
|
'%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
|
||||||
'%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
|
'%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
|
||||||
'%d.%m.%Y.', # '25.10.2006.'
|
|
||||||
'%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
|
'%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
|
||||||
'%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
|
'%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
|
||||||
'%d.%m.%y. %H:%M', # '25.10.06. 14:30'
|
'%d.%m.%y. %H:%M', # '25.10.06. 14:30'
|
||||||
'%d.%m.%y.', # '25.10.06.'
|
|
||||||
'%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
|
'%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
|
||||||
'%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
|
'%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
|
||||||
'%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
|
'%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
|
||||||
'%d. %m. %Y.', # '25. 10. 2006.'
|
|
||||||
'%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
|
'%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
|
||||||
'%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
|
'%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
|
||||||
'%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
|
'%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
|
||||||
'%d. %m. %y.', # '25. 10. 06.'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
|
|
|
@ -24,7 +24,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y.%m.%d. %H:%M:%S', # '2006.10.25. 14:30:59'
|
'%Y.%m.%d. %H:%M:%S', # '2006.10.25. 14:30:59'
|
||||||
'%Y.%m.%d. %H:%M:%S.%f', # '2006.10.25. 14:30:59.000200'
|
'%Y.%m.%d. %H:%M:%S.%f', # '2006.10.25. 14:30:59.000200'
|
||||||
'%Y.%m.%d. %H:%M', # '2006.10.25. 14:30'
|
'%Y.%m.%d. %H:%M', # '2006.10.25. 14:30'
|
||||||
'%Y.%m.%d.', # '2006.10.25.'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = ' ' # Non-breaking space
|
THOUSAND_SEPARATOR = ' ' # Non-breaking space
|
||||||
|
|
|
@ -18,6 +18,7 @@ DATE_INPUT_FORMATS = [
|
||||||
'%d-%m-%y', '%d/%m/%y', # '25-10-09', 25/10/09'
|
'%d-%m-%y', '%d/%m/%y', # '25-10-09', 25/10/09'
|
||||||
'%d %b %Y', # '25 Oct 2006',
|
'%d %b %Y', # '25 Oct 2006',
|
||||||
'%d %B %Y', # '25 October 2006'
|
'%d %B %Y', # '25 October 2006'
|
||||||
|
'%m/%d/%y', '%m/%d/%Y', # '10/25/06', '10/25/2009'
|
||||||
]
|
]
|
||||||
|
|
||||||
TIME_INPUT_FORMATS = [
|
TIME_INPUT_FORMATS = [
|
||||||
|
@ -29,19 +30,15 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d-%m-%Y %H.%M.%S', # '25-10-2009 14.30.59'
|
'%d-%m-%Y %H.%M.%S', # '25-10-2009 14.30.59'
|
||||||
'%d-%m-%Y %H.%M.%S.%f', # '25-10-2009 14.30.59.000200'
|
'%d-%m-%Y %H.%M.%S.%f', # '25-10-2009 14.30.59.000200'
|
||||||
'%d-%m-%Y %H.%M', # '25-10-2009 14.30'
|
'%d-%m-%Y %H.%M', # '25-10-2009 14.30'
|
||||||
'%d-%m-%Y', # '25-10-2009'
|
|
||||||
'%d-%m-%y %H.%M.%S', # '25-10-09' 14.30.59'
|
'%d-%m-%y %H.%M.%S', # '25-10-09' 14.30.59'
|
||||||
'%d-%m-%y %H.%M.%S.%f', # '25-10-09' 14.30.59.000200'
|
'%d-%m-%y %H.%M.%S.%f', # '25-10-09' 14.30.59.000200'
|
||||||
'%d-%m-%y %H.%M', # '25-10-09' 14.30'
|
'%d-%m-%y %H.%M', # '25-10-09' 14.30'
|
||||||
'%d-%m-%y', # '25-10-09''
|
|
||||||
'%m/%d/%y %H.%M.%S', # '10/25/06 14.30.59'
|
'%m/%d/%y %H.%M.%S', # '10/25/06 14.30.59'
|
||||||
'%m/%d/%y %H.%M.%S.%f', # '10/25/06 14.30.59.000200'
|
'%m/%d/%y %H.%M.%S.%f', # '10/25/06 14.30.59.000200'
|
||||||
'%m/%d/%y %H.%M', # '10/25/06 14.30'
|
'%m/%d/%y %H.%M', # '10/25/06 14.30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
'%m/%d/%Y %H.%M.%S', # '25/10/2009 14.30.59'
|
'%m/%d/%Y %H.%M.%S', # '25/10/2009 14.30.59'
|
||||||
'%m/%d/%Y %H.%M.%S.%f', # '25/10/2009 14.30.59.000200'
|
'%m/%d/%Y %H.%M.%S.%f', # '25/10/2009 14.30.59.000200'
|
||||||
'%m/%d/%Y %H.%M', # '25/10/2009 14.30'
|
'%m/%d/%Y %H.%M', # '25/10/2009 14.30'
|
||||||
'%m/%d/%Y', # '10/25/2009'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
|
|
|
@ -22,23 +22,18 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d-%m-%Y %H:%M:%S', # '25-10-2006 14:30:59'
|
'%d-%m-%Y %H:%M:%S', # '25-10-2006 14:30:59'
|
||||||
'%d-%m-%Y %H:%M:%S.%f', # '25-10-2006 14:30:59.000200'
|
'%d-%m-%Y %H:%M:%S.%f', # '25-10-2006 14:30:59.000200'
|
||||||
'%d-%m-%Y %H:%M', # '25-10-2006 14:30'
|
'%d-%m-%Y %H:%M', # '25-10-2006 14:30'
|
||||||
'%d-%m-%Y', # '25-10-2006'
|
|
||||||
'%d-%m-%y %H:%M:%S', # '25-10-06 14:30:59'
|
'%d-%m-%y %H:%M:%S', # '25-10-06 14:30:59'
|
||||||
'%d-%m-%y %H:%M:%S.%f', # '25-10-06 14:30:59.000200'
|
'%d-%m-%y %H:%M:%S.%f', # '25-10-06 14:30:59.000200'
|
||||||
'%d-%m-%y %H:%M', # '25-10-06 14:30'
|
'%d-%m-%y %H:%M', # '25-10-06 14:30'
|
||||||
'%d-%m-%y', # '25-10-06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -16,31 +16,26 @@ FIRST_DAY_OF_WEEK = 1 # (Monday)
|
||||||
# Kept ISO formats as they are in first position
|
# Kept ISO formats as they are in first position
|
||||||
DATE_INPUT_FORMATS = [
|
DATE_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
|
'%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
|
||||||
|
'%d.%m.%Y', '%d.%m.%y', # '25.10.2006', '25.10.06'
|
||||||
# '%d %b %Y', '%d %b, %Y', '%d %b. %Y', # '25 Oct 2006', '25 Oct, 2006', '25 Oct. 2006'
|
# '%d %b %Y', '%d %b, %Y', '%d %b. %Y', # '25 Oct 2006', '25 Oct, 2006', '25 Oct. 2006'
|
||||||
# '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
|
# '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
|
||||||
# '%d.%m.%Y', '%d.%m.%y', # '25.10.2006', '25.10.06'
|
|
||||||
]
|
]
|
||||||
DATETIME_INPUT_FORMATS = [
|
DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = '.'
|
DECIMAL_SEPARATOR = '.'
|
||||||
THOUSAND_SEPARATOR = " "
|
THOUSAND_SEPARATOR = " "
|
||||||
|
|
|
@ -33,15 +33,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
|
|
||||||
'%Y년 %m월 %d일 %H시 %M분 %S초', # '2006년 10월 25일 14시 30분 59초'
|
'%Y년 %m월 %d일 %H시 %M분 %S초', # '2006년 10월 25일 14시 30분 59초'
|
||||||
'%Y년 %m월 %d일 %H시 %M분', # '2006년 10월 25일 14시 30분'
|
'%Y년 %m월 %d일 %H시 %M분', # '2006년 10월 25일 14시 30분'
|
||||||
|
|
|
@ -31,14 +31,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y %H.%M.%S', # '25.10.06 14.30.59'
|
'%d.%m.%y %H.%M.%S', # '25.10.06 14.30.59'
|
||||||
'%d.%m.%y %H.%M.%S.%f', # '25.10.06 14.30.59.000200'
|
'%d.%m.%y %H.%M.%S.%f', # '25.10.06 14.30.59.000200'
|
||||||
'%d.%m.%y %H.%M', # '25.10.06 14.30'
|
'%d.%m.%y %H.%M', # '25.10.06 14.30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -32,14 +32,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y %H.%M.%S', # '25.10.06 14.30.59'
|
'%d.%m.%y %H.%M.%S', # '25.10.06 14.30.59'
|
||||||
'%d.%m.%y %H.%M.%S.%f', # '25.10.06 14.30.59.000200'
|
'%d.%m.%y %H.%M.%S.%f', # '25.10.06 14.30.59.000200'
|
||||||
'%d.%m.%y %H.%M', # '25.10.06 14.30'
|
'%d.%m.%y %H.%M', # '25.10.06 14.30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = ' ' # Non-breaking space
|
THOUSAND_SEPARATOR = ' ' # Non-breaking space
|
||||||
|
|
|
@ -22,19 +22,15 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
'%d. %m. %Y %H:%M:%S', # '25. 10. 2006 14:30:59'
|
'%d. %m. %Y %H:%M:%S', # '25. 10. 2006 14:30:59'
|
||||||
'%d. %m. %Y %H:%M:%S.%f', # '25. 10. 2006 14:30:59.000200'
|
'%d. %m. %Y %H:%M:%S.%f', # '25. 10. 2006 14:30:59.000200'
|
||||||
'%d. %m. %Y %H:%M', # '25. 10. 2006 14:30'
|
'%d. %m. %Y %H:%M', # '25. 10. 2006 14:30'
|
||||||
'%d. %m. %Y', # '25. 10. 2006'
|
|
||||||
'%d. %m. %y %H:%M:%S', # '25. 10. 06 14:30:59'
|
'%d. %m. %y %H:%M:%S', # '25. 10. 06 14:30:59'
|
||||||
'%d. %m. %y %H:%M:%S.%f', # '25. 10. 06 14:30:59.000200'
|
'%d. %m. %y %H:%M:%S.%f', # '25. 10. 06 14:30:59.000200'
|
||||||
'%d. %m. %y %H:%M', # '25. 10. 06 14:30'
|
'%d. %m. %y %H:%M', # '25. 10. 06 14:30'
|
||||||
'%d. %m. %y', # '25. 10. 06'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
|
|
|
@ -25,15 +25,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = '.'
|
DECIMAL_SEPARATOR = '.'
|
||||||
THOUSAND_SEPARATOR = ','
|
THOUSAND_SEPARATOR = ','
|
||||||
|
|
|
@ -24,15 +24,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -16,6 +16,7 @@ FIRST_DAY_OF_WEEK = 1 # Monday (in Dutch 'maandag')
|
||||||
DATE_INPUT_FORMATS = [
|
DATE_INPUT_FORMATS = [
|
||||||
'%d-%m-%Y', '%d-%m-%y', # '20-01-2009', '20-01-09'
|
'%d-%m-%Y', '%d-%m-%y', # '20-01-2009', '20-01-09'
|
||||||
'%d/%m/%Y', '%d/%m/%y', # '20/01/2009', '20/01/09'
|
'%d/%m/%Y', '%d/%m/%y', # '20/01/2009', '20/01/09'
|
||||||
|
'%Y/%m/%d', # '2009/01/20'
|
||||||
# '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
|
# '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
|
||||||
# '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 09'
|
# '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 09'
|
||||||
]
|
]
|
||||||
|
@ -59,11 +60,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d/%m/%Y %H.%M', '%d/%m/%y %H.%M', # '20/01/2009 15.23', '20/01/09 15.23'
|
'%d/%m/%Y %H.%M', '%d/%m/%y %H.%M', # '20/01/2009 15.23', '20/01/09 15.23'
|
||||||
# '%d %b %Y %H.%M', '%d %b %y %H.%M', # '20 jan 2009 15.23', '20 jan 09 15.23'
|
# '%d %b %Y %H.%M', '%d %b %y %H.%M', # '20 jan 2009 15.23', '20 jan 09 15.23'
|
||||||
# '%d %B %Y %H.%M', '%d %B %y %H.%M', # '20 januari 2009 15.23', '20 januari 2009 15.23'
|
# '%d %B %Y %H.%M', '%d %B %y %H.%M', # '20 januari 2009 15.23', '20 januari 2009 15.23'
|
||||||
# Without time :
|
|
||||||
'%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
|
|
||||||
'%d/%m/%Y', '%d/%m/%y', '%Y/%m/%d', # '20/01/2009', '20/01/09', '2009/01/20'
|
|
||||||
# '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
|
|
||||||
# '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 2009'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -24,16 +24,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -22,7 +22,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = ' '
|
THOUSAND_SEPARATOR = ' '
|
||||||
|
|
|
@ -23,15 +23,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -22,11 +22,9 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
|
||||||
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
|
||||||
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
'%d/%m/%y %H:%M', # '25/10/06 14:30'
|
||||||
'%d/%m/%y', # '25/10/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -21,11 +21,9 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -22,7 +22,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -23,23 +23,18 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
|
||||||
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
|
||||||
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
'%d.%m.%y %H:%M', # '25.10.06 14:30'
|
||||||
'%d.%m.%y', # '25.10.06'
|
|
||||||
'%d-%m-%Y %H:%M:%S', # '25-10-2006 14:30:59'
|
'%d-%m-%Y %H:%M:%S', # '25-10-2006 14:30:59'
|
||||||
'%d-%m-%Y %H:%M:%S.%f', # '25-10-2006 14:30:59.000200'
|
'%d-%m-%Y %H:%M:%S.%f', # '25-10-2006 14:30:59.000200'
|
||||||
'%d-%m-%Y %H:%M', # '25-10-2006 14:30'
|
'%d-%m-%Y %H:%M', # '25-10-2006 14:30'
|
||||||
'%d-%m-%Y', # '25-10-2006'
|
|
||||||
'%d. %m. %Y %H:%M:%S', # '25. 10. 2006 14:30:59'
|
'%d. %m. %Y %H:%M:%S', # '25. 10. 2006 14:30:59'
|
||||||
'%d. %m. %Y %H:%M:%S.%f', # '25. 10. 2006 14:30:59.000200'
|
'%d. %m. %Y %H:%M:%S.%f', # '25. 10. 2006 14:30:59.000200'
|
||||||
'%d. %m. %Y %H:%M', # '25. 10. 2006 14:30'
|
'%d. %m. %Y %H:%M', # '25. 10. 2006 14:30'
|
||||||
'%d. %m. %Y', # '25. 10. 2006'
|
|
||||||
'%d. %m. %y %H:%M:%S', # '25. 10. 06 14:30:59'
|
'%d. %m. %y %H:%M:%S', # '25. 10. 06 14:30:59'
|
||||||
'%d. %m. %y %H:%M:%S.%f', # '25. 10. 06 14:30:59.000200'
|
'%d. %m. %y %H:%M:%S.%f', # '25. 10. 06 14:30:59.000200'
|
||||||
'%d. %m. %y %H:%M', # '25. 10. 06 14:30'
|
'%d. %m. %y %H:%M', # '25. 10. 06 14:30'
|
||||||
'%d. %m. %y', # '25. 10. 06'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
|
|
|
@ -24,19 +24,15 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
|
'%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
|
||||||
'%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
|
'%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
|
||||||
'%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
|
'%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
|
||||||
'%d.%m.%Y.', # '25.10.2006.'
|
|
||||||
'%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
|
'%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
|
||||||
'%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
|
'%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
|
||||||
'%d.%m.%y. %H:%M', # '25.10.06. 14:30'
|
'%d.%m.%y. %H:%M', # '25.10.06. 14:30'
|
||||||
'%d.%m.%y.', # '25.10.06.'
|
|
||||||
'%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
|
'%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
|
||||||
'%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
|
'%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
|
||||||
'%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
|
'%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
|
||||||
'%d. %m. %Y.', # '25. 10. 2006.'
|
|
||||||
'%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
|
'%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
|
||||||
'%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
|
'%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
|
||||||
'%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
|
'%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
|
||||||
'%d. %m. %y.', # '25. 10. 06.'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -24,19 +24,15 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
|
'%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
|
||||||
'%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
|
'%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
|
||||||
'%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
|
'%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
|
||||||
'%d.%m.%Y.', # '25.10.2006.'
|
|
||||||
'%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
|
'%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
|
||||||
'%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
|
'%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
|
||||||
'%d.%m.%y. %H:%M', # '25.10.06. 14:30'
|
'%d.%m.%y. %H:%M', # '25.10.06. 14:30'
|
||||||
'%d.%m.%y.', # '25.10.06.'
|
|
||||||
'%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
|
'%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
|
||||||
'%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
|
'%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
|
||||||
'%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
|
'%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
|
||||||
'%d. %m. %Y.', # '25. 10. 2006.'
|
|
||||||
'%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
|
'%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
|
||||||
'%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
|
'%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
|
||||||
'%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
|
'%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
|
||||||
'%d. %m. %y.', # '25. 10. 06.'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -23,15 +23,12 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -22,7 +22,6 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
|
||||||
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
|
||||||
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
|
||||||
'%d/%m/%Y', # '25/10/2006'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '.'
|
THOUSAND_SEPARATOR = '.'
|
||||||
|
|
|
@ -26,11 +26,9 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d %B %Y %H:%M:%S', # '25 October 2006 14:30:59'
|
'%d %B %Y %H:%M:%S', # '25 October 2006 14:30:59'
|
||||||
'%d %B %Y %H:%M:%S.%f', # '25 October 2006 14:30:59.000200'
|
'%d %B %Y %H:%M:%S.%f', # '25 October 2006 14:30:59.000200'
|
||||||
'%d %B %Y %H:%M', # '25 October 2006 14:30'
|
'%d %B %Y %H:%M', # '25 October 2006 14:30'
|
||||||
'%d %B %Y', # '25 October 2006'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -21,11 +21,9 @@ DATETIME_INPUT_FORMATS = [
|
||||||
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
|
||||||
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
|
||||||
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
|
||||||
'%d.%m.%Y', # '25.10.2006'
|
|
||||||
'%d-%B, %Y-yil %H:%M:%S', # '25-Oktabr, 2006-yil 14:30:59'
|
'%d-%B, %Y-yil %H:%M:%S', # '25-Oktabr, 2006-yil 14:30:59'
|
||||||
'%d-%B, %Y-yil %H:%M:%S.%f', # '25-Oktabr, 2006-yil 14:30:59.000200'
|
'%d-%B, %Y-yil %H:%M:%S.%f', # '25-Oktabr, 2006-yil 14:30:59.000200'
|
||||||
'%d-%B, %Y-yil %H:%M', # '25-Oktabr, 2006-yil 14:30'
|
'%d-%B, %Y-yil %H:%M', # '25-Oktabr, 2006-yil 14:30'
|
||||||
'%d-%B, %Y-yil', # '25-Oktabr, 2006-yil'
|
|
||||||
]
|
]
|
||||||
DECIMAL_SEPARATOR = ','
|
DECIMAL_SEPARATOR = ','
|
||||||
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
|
||||||
|
|
|
@ -435,9 +435,15 @@ class TimeField(BaseTemporalField):
|
||||||
return datetime.datetime.strptime(value, format).time()
|
return datetime.datetime.strptime(value, format).time()
|
||||||
|
|
||||||
|
|
||||||
|
class DateTimeFormatsIterator:
|
||||||
|
def __iter__(self):
|
||||||
|
yield from formats.get_format('DATETIME_INPUT_FORMATS')
|
||||||
|
yield from formats.get_format('DATE_INPUT_FORMATS')
|
||||||
|
|
||||||
|
|
||||||
class DateTimeField(BaseTemporalField):
|
class DateTimeField(BaseTemporalField):
|
||||||
widget = DateTimeInput
|
widget = DateTimeInput
|
||||||
input_formats = formats.get_format_lazy('DATETIME_INPUT_FORMATS')
|
input_formats = DateTimeFormatsIterator()
|
||||||
default_error_messages = {
|
default_error_messages = {
|
||||||
'invalid': _('Enter a valid date/time.'),
|
'invalid': _('Enter a valid date/time.'),
|
||||||
}
|
}
|
||||||
|
|
|
@ -505,16 +505,20 @@ For each field, we describe the default widget used if you don't specify
|
||||||
* '2006-10-25'
|
* '2006-10-25'
|
||||||
|
|
||||||
If no ``input_formats`` argument is provided, the default input formats are
|
If no ``input_formats`` argument is provided, the default input formats are
|
||||||
taken from :setting:`DATETIME_INPUT_FORMATS` if :setting:`USE_L10N` is
|
taken from :setting:`DATETIME_INPUT_FORMATS` and
|
||||||
``False``, or from the active locale format ``DATETIME_INPUT_FORMATS`` key
|
:setting:`DATE_INPUT_FORMATS` if :setting:`USE_L10N` is ``False``, or from
|
||||||
if localization is enabled. See also :doc:`format localization
|
the active locale format ``DATETIME_INPUT_FORMATS`` and
|
||||||
</topics/i18n/formatting>`.
|
``DATE_INPUT_FORMATS`` keys if localization is enabled. See also
|
||||||
|
:doc:`format localization </topics/i18n/formatting>`.
|
||||||
|
|
||||||
.. versionchanged:: 3.1
|
.. versionchanged:: 3.1
|
||||||
|
|
||||||
Support for ISO 8601 date string parsing (including optional timezone)
|
Support for ISO 8601 date string parsing (including optional timezone)
|
||||||
was added.
|
was added.
|
||||||
|
|
||||||
|
The fallback on ``DATE_INPUT_FORMATS`` in the default ``input_formats``
|
||||||
|
was added.
|
||||||
|
|
||||||
``DecimalField``
|
``DecimalField``
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
|
@ -1135,28 +1135,30 @@ Default::
|
||||||
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
||||||
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
||||||
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
||||||
'%Y-%m-%d', # '2006-10-25'
|
|
||||||
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
'%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
|
||||||
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
'%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
|
||||||
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
'%m/%d/%Y %H:%M', # '10/25/2006 14:30'
|
||||||
'%m/%d/%Y', # '10/25/2006'
|
|
||||||
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
'%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
|
||||||
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
||||||
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
'%m/%d/%y %H:%M', # '10/25/06 14:30'
|
||||||
'%m/%d/%y', # '10/25/06'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
A list of formats that will be accepted when inputting data on a datetime
|
A list of formats that will be accepted when inputting data on a datetime
|
||||||
field. Formats will be tried in order, using the first valid one. Note that
|
field. Formats will be tried in order, using the first valid one. Note that
|
||||||
these format strings use Python's :ref:`datetime module syntax
|
these format strings use Python's :ref:`datetime module syntax
|
||||||
<strftime-strptime-behavior>`, not the format strings from the :tfilter:`date`
|
<strftime-strptime-behavior>`, not the format strings from the :tfilter:`date`
|
||||||
template filter.
|
template filter. Date-only formats are not included as datetime fields will
|
||||||
|
automatically try :setting:`DATE_INPUT_FORMATS` in last resort.
|
||||||
|
|
||||||
When :setting:`USE_L10N` is ``True``, the locale-dictated format has higher
|
When :setting:`USE_L10N` is ``True``, the locale-dictated format has higher
|
||||||
precedence and will be applied instead.
|
precedence and will be applied instead.
|
||||||
|
|
||||||
See also :setting:`DATE_INPUT_FORMATS` and :setting:`TIME_INPUT_FORMATS`.
|
See also :setting:`DATE_INPUT_FORMATS` and :setting:`TIME_INPUT_FORMATS`.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.1
|
||||||
|
|
||||||
|
In older versions, the default is a list containing also date-only formats.
|
||||||
|
|
||||||
.. setting:: DEBUG
|
.. setting:: DEBUG
|
||||||
|
|
||||||
``DEBUG``
|
``DEBUG``
|
||||||
|
|
|
@ -181,7 +181,9 @@ Forms
|
||||||
|
|
||||||
* :class:`django.forms.DateTimeField` now accepts dates in a subset of ISO 8601
|
* :class:`django.forms.DateTimeField` now accepts dates in a subset of ISO 8601
|
||||||
datetime formats, including optional timezone (e.g. ``2019-10-10T06:47``,
|
datetime formats, including optional timezone (e.g. ``2019-10-10T06:47``,
|
||||||
``2019-10-10T06:47:23+04:00``, or ``2019-10-10T06:47:23Z``).
|
``2019-10-10T06:47:23+04:00``, or ``2019-10-10T06:47:23Z``). Additionally, it
|
||||||
|
now uses ``DATE_INPUT_FORMATS`` in addition to ``DATETIME_INPUT_FORMATS``
|
||||||
|
when converting a field input to a ``datetime`` value.
|
||||||
|
|
||||||
Generic Views
|
Generic Views
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
@ -401,6 +403,9 @@ Miscellaneous
|
||||||
Group Specification, i.e. values between 69 and 99 are mapped to the previous
|
Group Specification, i.e. values between 69 and 99 are mapped to the previous
|
||||||
century, and values between 0 and 68 are mapped to the current century.
|
century, and values between 0 and 68 are mapped to the current century.
|
||||||
|
|
||||||
|
* Date-only formats are removed from the default list for
|
||||||
|
:setting:`DATETIME_INPUT_FORMATS`.
|
||||||
|
|
||||||
.. _deprecated-features-3.1:
|
.. _deprecated-features-3.1:
|
||||||
|
|
||||||
Features deprecated in 3.1
|
Features deprecated in 3.1
|
||||||
|
|
Loading…
Reference in New Issue