PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/django/conf/locale/nl/formats.py

https://code.google.com/p/mango-py/
Python | 53 lines | 27 code | 2 blank | 24 comment | 0 complexity | 4e5101b550a40f67a76aa37cd4ec46c1 MD5 | raw file
 1# -*- encoding: utf-8 -*-
 2# This file is distributed under the same license as the Django package.
 3#
 4
 5# The *_FORMAT strings use the Django date format syntax,
 6# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
 7DATE_FORMAT = 'j F Y'                   # '20 januari 2009'
 8TIME_FORMAT = 'H:i'                     # '15:23'
 9DATETIME_FORMAT = 'j F Y H:i'           # '20 januari 2009 15:23'
10YEAR_MONTH_FORMAT = 'F Y'               # 'januari 2009'
11MONTH_DAY_FORMAT = 'j F'                # '20 januari'
12SHORT_DATE_FORMAT = 'j-n-Y'             # '20-1-2009'
13SHORT_DATETIME_FORMAT = 'j-n-Y H:i'     # '20-1-2009 15:23'
14FIRST_DAY_OF_WEEK = 1                   # Monday (in Dutch 'maandag')
15
16# The *_INPUT_FORMATS strings use the Python strftime format syntax,
17# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
18DATE_INPUT_FORMATS = (
19    '%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
20    # '%d %b %Y', '%d %b %y',             # '20 jan 2009', '20 jan 09'
21    # '%d %B %Y', '%d %B %y',             # '20 januari 2009', '20 januari 09'
22)
23TIME_INPUT_FORMATS = (
24    '%H:%M:%S',                         # '15:23:35'
25    '%H.%M:%S',                         # '15.23:35'
26    '%H.%M',                            # '15.23'
27    '%H:%M',                            # '15:23'
28)
29DATETIME_INPUT_FORMATS = (
30    # With time in %H:%M:%S :
31    '%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'
32    # '%d %b %Y %H:%M:%S', '%d %b %y %H:%M:%S',   # '20 jan 2009 15:23:35', '20 jan 09 15:23:35'
33    # '%d %B %Y %H:%M:%S', '%d %B %y %H:%M:%S',   # '20 januari 2009 15:23:35', '20 januari 2009 15:23:35'
34    # With time in %H.%M:%S :
35    '%d-%m-%Y %H.%M:%S', '%d-%m-%y %H.%M:%S',   # '20-01-2009 15.23:35', '20-01-09 15.23:35'
36    # '%d %b %Y %H.%M:%S', '%d %b %y %H.%M:%S',   # '20 jan 2009 15.23:35', '20 jan 09 15.23:35'
37    # '%d %B %Y %H.%M:%S', '%d %B %y %H.%M:%S',   # '20 januari 2009 15.23:35', '20 januari 2009 15.23:35'
38    # With time in %H:%M :
39    '%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'
40    # '%d %b %Y %H:%M', '%d %b %y %H:%M',         # '20 jan 2009 15:23', '20 jan 09 15:23'
41    # '%d %B %Y %H:%M', '%d %B %y %H:%M',         # '20 januari 2009 15:23', '20 januari 2009 15:23'
42    # With time in %H.%M :
43    '%d-%m-%Y %H.%M', '%d-%m-%y %H.%M',         # '20-01-2009 15.23', '20-01-09 15.23'
44    # '%d %b %Y %H.%M', '%d %b %y %H.%M',         # '20 jan 2009 15.23', '20 jan 09 15.23'
45    # '%d %B %Y %H.%M', '%d %B %y %H.%M',         # '20 januari 2009 15.23', '20 januari 2009 15.23'
46    # Without time :
47    '%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d',         # '20-01-2009', '20-01-09', '2009-01-20'
48    # '%d %b %Y', '%d %b %y',                     # '20 jan 2009', '20 jan 09'
49    # '%d %B %Y', '%d %B %y',                     # '20 januari 2009', '20 januari 2009'
50)
51DECIMAL_SEPARATOR = ','
52THOUSAND_SEPARATOR = '.'
53NUMBER_GROUPING = 3