Ticket #14768: formats.py

File formats.py, 859 bytes (added by Alonso Bautista Villalobos <bautvill@…>, 14 years ago)

formats.py for es-MX locate

Line 
1# -*- encoding: utf-8 -*-
2# This file is distributed under the same license as the Django package.
3#
4
5DATE_FORMAT = r'j \de F \de Y'
6TIME_FORMAT = 'H:i:s'
7DATETIME_FORMAT = r'j \de F \de Y \a \l\a\s H:i'
8YEAR_MONTH_FORMAT = r'F \de Y'
9MONTH_DAY_FORMAT = r'j \de F'
10SHORT_DATE_FORMAT = 'd/m/Y'
11SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
12FIRST_DAY_OF_WEEK = 1 # Monday: ISO 8601
13DATE_INPUT_FORMATS = (
14 '%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
15 '%Y%m%d', # '20061025'
16
17)
18TIME_INPUT_FORMATS = (
19 '%H:%M:%S', '%H:%M', # '14:30:59', '14:30'
20)
21DATETIME_INPUT_FORMATS = (
22 '%d/%m/%Y %H:%M:%S',
23 '%d/%m/%Y %H:%M',
24 '%d/%m/%y %H:%M:%S',
25 '%d/%m/%y %H:%M',
26)
27DECIMAL_SEPARATOR = '.' # ',' is also official (less common): NOM-008-SCFI-2002
28THOUSAND_SEPARATOR = ' ' # white space
29NUMBER_GROUPING = 3
30
Back to Top