~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to django/conf/locale/id/formats.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
# This file is distributed under the same license as the Django package.
 
3
#
 
4
 
 
5
DATE_FORMAT = 'j N Y'
 
6
DATETIME_FORMAT = "j N Y, G:i:s"
 
7
TIME_FORMAT = 'G:i:s'
 
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:s'
 
12
FIRST_DAY_OF_WEEK = 1 #Monday
 
13
 
 
14
DATE_INPUT_FORMATS = (
 
15
    '%d-%m-%y', '%d/%m/%y',             # '25-10-09' , 25/10/09'
 
16
    '%d-%m-%Y', '%d/%m/%Y',             # '25-10-2009' , 25/10/2009'
 
17
    # '%d %b %Y', '%d %b, %Y',          # '25 Oct 2006', '25 Oct, 2006'
 
18
    # '%d %B %Y', '%d %B, %Y',          # '25 October 2006', '25 October, 2006'
 
19
)
 
20
 
 
21
TIME_INPUT_FORMATS = (
 
22
    '%H:%M:%S',                         # '14:30:59'
 
23
    '%H:%M',                            # '14:30'
 
24
)
 
25
 
 
26
DATETIME_INPUT_FORMATS = (
 
27
    '%d-%m-%Y %H:%M:%S',                # '25-10-2009 14:30:59'
 
28
    '%d-%m-%Y %H:%M',                   # '25-10-2009 14:30'
 
29
    '%d-%m-%Y',                         # '25-10-2009'
 
30
    '%d-%m-%y %H:%M:%S',                # '25-10-09' 14:30:59'
 
31
    '%d-%m-%y %H:%M',                   # '25-10-09' 14:30'
 
32
    '%d-%m-%y',                         # '25-10-09''
 
33
    '%m/%d/%y %H:%M:%S',                # '10/25/06 14:30:59'
 
34
    '%m/%d/%y %H:%M',                   # '10/25/06 14:30'
 
35
    '%m/%d/%y',                         # '10/25/06'
 
36
    '%m/%d/%Y %H:%M:%S',                # '25/10/2009 14:30:59'
 
37
    '%m/%d/%Y %H:%M',                   # '25/10/2009 14:30'
 
38
    '%m/%d/%Y',                         # '10/25/2009'
 
39
)
 
40
 
 
41
DECIMAL_SEPARATOR = ','
 
42
THOUSAND_SEPARATOR = '.'
 
43
NUMBER_GROUPING = 3