2009-12-23 01:58:49 +08:00
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
# This file is distributed under the same license as the Django package.
|
|
|
|
#
|
2012-06-08 00:08:47 +08:00
|
|
|
from __future__ import unicode_literals
|
2009-12-23 01:58:49 +08:00
|
|
|
|
2010-12-13 07:02:10 +08:00
|
|
|
# The *_FORMAT strings use the Django date format syntax,
|
|
|
|
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
|
2010-12-13 21:52:21 +08:00
|
|
|
DATE_FORMAT = 'j. E Y'
|
2014-09-11 20:43:49 +08:00
|
|
|
TIME_FORMAT = 'G.i'
|
|
|
|
DATETIME_FORMAT = r'j. E Y \k\e\l\l\o G.i'
|
2009-12-23 01:58:49 +08:00
|
|
|
YEAR_MONTH_FORMAT = 'F Y'
|
|
|
|
MONTH_DAY_FORMAT = 'j. F'
|
|
|
|
SHORT_DATE_FORMAT = 'j.n.Y'
|
2014-03-21 16:15:33 +08:00
|
|
|
SHORT_DATETIME_FORMAT = 'j.n.Y G.i'
|
|
|
|
FIRST_DAY_OF_WEEK = 1 # Monday
|
2010-12-13 07:02:10 +08:00
|
|
|
|
|
|
|
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
|
|
|
|
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
2015-01-22 00:55:57 +08:00
|
|
|
DATE_INPUT_FORMATS = [
|
2014-03-21 16:15:33 +08:00
|
|
|
'%d.%m.%Y', # '20.3.2014'
|
|
|
|
'%d.%m.%y', # '20.3.14'
|
2015-01-22 00:55:57 +08:00
|
|
|
]
|
|
|
|
DATETIME_INPUT_FORMATS = [
|
2014-03-21 16:15:33 +08:00
|
|
|
'%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', # '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.%f', # '20.3.14 14.30.59.000200'
|
|
|
|
'%d.%m.%y %H.%M', # '20.3.14 14.30'
|
|
|
|
'%d.%m.%y', # '20.3.14'
|
2015-01-22 00:55:57 +08:00
|
|
|
]
|
|
|
|
TIME_INPUT_FORMATS = [
|
2014-03-21 16:15:33 +08:00
|
|
|
'%H.%M.%S', # '14.30.59'
|
|
|
|
'%H.%M.%S.%f', # '14.30.59.000200'
|
|
|
|
'%H.%M', # '14.30'
|
2015-01-22 00:55:57 +08:00
|
|
|
]
|
2014-03-21 16:15:33 +08:00
|
|
|
|
2009-12-23 01:58:49 +08:00
|
|
|
DECIMAL_SEPARATOR = ','
|
2014-03-21 16:15:33 +08:00
|
|
|
THOUSAND_SEPARATOR = '\xa0' # Non-breaking space
|
|
|
|
NUMBER_GROUPING = 3
|