2009-12-23 01:58:49 +08:00
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
# This file is distributed under the same license as the Django package.
|
|
|
|
#
|
2013-02-15 06:25:15 +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
|
2009-12-23 01:58:49 +08:00
|
|
|
DATE_FORMAT = 'j F Y' # '20 januari 2009'
|
|
|
|
TIME_FORMAT = 'H:i' # '15:23'
|
|
|
|
DATETIME_FORMAT = 'j F Y H:i' # '20 januari 2009 15:23'
|
|
|
|
YEAR_MONTH_FORMAT = 'F Y' # 'januari 2009'
|
|
|
|
MONTH_DAY_FORMAT = 'j F' # '20 januari'
|
|
|
|
SHORT_DATE_FORMAT = 'j-n-Y' # '20-1-2009'
|
|
|
|
SHORT_DATETIME_FORMAT = 'j-n-Y H:i' # '20-1-2009 15:23'
|
|
|
|
FIRST_DAY_OF_WEEK = 1 # Monday (in Dutch 'maandag')
|
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
|
2009-12-23 01:58:49 +08:00
|
|
|
DATE_INPUT_FORMATS = (
|
2012-12-01 21:15:06 +08:00
|
|
|
'%d-%m-%Y', '%d-%m-%y', # '20-01-2009', '20-01-09'
|
2014-03-24 16:40:01 +08:00
|
|
|
'%d/%m/%Y', '%d/%m/%y', # '20/01/2009', '20/01/09'
|
2012-12-01 21:15:06 +08:00
|
|
|
# '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
|
|
|
|
# '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 09'
|
2009-12-23 01:58:49 +08:00
|
|
|
)
|
2012-12-01 21:15:06 +08:00
|
|
|
# Kept ISO formats as one is in first position
|
2009-12-23 01:58:49 +08:00
|
|
|
TIME_INPUT_FORMATS = (
|
|
|
|
'%H:%M:%S', # '15:23:35'
|
2013-03-03 02:04:23 +08:00
|
|
|
'%H:%M:%S.%f', # '15:23:35.000200'
|
2009-12-23 01:58:49 +08:00
|
|
|
'%H.%M:%S', # '15.23:35'
|
2013-03-03 02:04:23 +08:00
|
|
|
'%H.%M:%S.%f', # '15.23:35.000200'
|
2009-12-23 01:58:49 +08:00
|
|
|
'%H.%M', # '15.23'
|
|
|
|
'%H:%M', # '15:23'
|
|
|
|
)
|
|
|
|
DATETIME_INPUT_FORMATS = (
|
|
|
|
# With time in %H:%M:%S :
|
2014-09-04 20:15:09 +08:00
|
|
|
'%d-%m-%Y %H:%M:%S', '%d-%m-%y %H:%M:%S', '%Y-%m-%d %H:%M:%S',
|
|
|
|
# '20-01-2009 15:23:35', '20-01-09 15:23:35', '2009-01-20 15:23:35'
|
|
|
|
'%d/%m/%Y %H:%M:%S', '%d/%m/%y %H:%M:%S', '%Y/%m/%d %H:%M:%S',
|
|
|
|
# '20/01/2009 15:23:35', '20/01/09 15:23:35', '2009/01/20 15:23:35'
|
2010-04-28 19:27:38 +08:00
|
|
|
# '%d %b %Y %H:%M:%S', '%d %b %y %H:%M:%S', # '20 jan 2009 15:23:35', '20 jan 09 15:23:35'
|
|
|
|
# '%d %B %Y %H:%M:%S', '%d %B %y %H:%M:%S', # '20 januari 2009 15:23:35', '20 januari 2009 15:23:35'
|
2013-03-03 02:04:23 +08:00
|
|
|
# With time in %H:%M:%S.%f :
|
2014-09-04 20:15:09 +08:00
|
|
|
'%d-%m-%Y %H:%M:%S.%f', '%d-%m-%y %H:%M:%S.%f', '%Y-%m-%d %H:%M:%S.%f',
|
|
|
|
# '20-01-2009 15:23:35.000200', '20-01-09 15:23:35.000200', '2009-01-20 15:23:35.000200'
|
|
|
|
'%d/%m/%Y %H:%M:%S.%f', '%d/%m/%y %H:%M:%S.%f', '%Y/%m/%d %H:%M:%S.%f',
|
|
|
|
# '20/01/2009 15:23:35.000200', '20/01/09 15:23:35.000200', '2009/01/20 15:23:35.000200'
|
2009-12-23 01:58:49 +08:00
|
|
|
# With time in %H.%M:%S :
|
|
|
|
'%d-%m-%Y %H.%M:%S', '%d-%m-%y %H.%M:%S', # '20-01-2009 15.23:35', '20-01-09 15.23:35'
|
2014-03-24 16:40:01 +08:00
|
|
|
'%d/%m/%Y %H.%M:%S', '%d/%m/%y %H.%M:%S', # '20/01/2009 15.23:35', '20/01/09 15.23:35'
|
2010-04-28 19:27:38 +08:00
|
|
|
# '%d %b %Y %H.%M:%S', '%d %b %y %H.%M:%S', # '20 jan 2009 15.23:35', '20 jan 09 15.23:35'
|
|
|
|
# '%d %B %Y %H.%M:%S', '%d %B %y %H.%M:%S', # '20 januari 2009 15.23:35', '20 januari 2009 15.23:35'
|
2013-03-03 02:04:23 +08:00
|
|
|
# With time in %H.%M:%S.%f :
|
|
|
|
'%d-%m-%Y %H.%M:%S.%f', '%d-%m-%y %H.%M:%S.%f', # '20-01-2009 15.23:35.000200', '20-01-09 15.23:35.000200'
|
2014-03-24 16:40:01 +08:00
|
|
|
'%d/%m/%Y %H.%M:%S.%f', '%d/%m/%y %H.%M:%S.%f', # '20/01/2009 15.23:35.000200', '20/01/09 15.23:35.000200'
|
2009-12-23 01:58:49 +08:00
|
|
|
# With time in %H:%M :
|
|
|
|
'%d-%m-%Y %H:%M', '%d-%m-%y %H:%M', '%Y-%m-%d %H:%M', # '20-01-2009 15:23', '20-01-09 15:23', '2009-01-20 15:23'
|
2014-03-24 16:40:01 +08:00
|
|
|
'%d/%m/%Y %H:%M', '%d/%m/%y %H:%M', '%Y/%m/%d %H:%M', # '20/01/2009 15:23', '20/01/09 15:23', '2009/01/20 15:23'
|
2010-04-28 19:27:38 +08:00
|
|
|
# '%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'
|
2009-12-23 01:58:49 +08:00
|
|
|
# With time in %H.%M :
|
|
|
|
'%d-%m-%Y %H.%M', '%d-%m-%y %H.%M', # '20-01-2009 15.23', '20-01-09 15.23'
|
2014-03-24 16:40:01 +08:00
|
|
|
'%d/%m/%Y %H.%M', '%d/%m/%y %H.%M', # '20/01/2009 15.23', '20/01/09 15.23'
|
2010-04-28 19:27:38 +08:00
|
|
|
# '%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'
|
2009-12-23 01:58:49 +08:00
|
|
|
# Without time :
|
|
|
|
'%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
|
2014-03-24 16:40:01 +08:00
|
|
|
'%d/%m/%Y', '%d/%m/%y', '%Y/%m/%d', # '20/01/2009', '20/01/09', '2009/01/20'
|
2010-04-28 19:27:38 +08:00
|
|
|
# '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
|
|
|
|
# '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 2009'
|
2009-12-23 01:58:49 +08:00
|
|
|
)
|
|
|
|
DECIMAL_SEPARATOR = ','
|
|
|
|
THOUSAND_SEPARATOR = '.'
|
|
|
|
NUMBER_GROUPING = 3
|