Ticket #19092: formats.py.patch

File formats.py.patch, 2.0 KB (added by Tadas Dailyda, 12 years ago)
  • django/conf/locale/lt/formats.py

    diff --git a/django/conf/locale/lt/formats.py b/django/conf/locale/lt/formats.py
    index c28600b..a539e62 100644
    a b  
    11# -*- encoding: utf-8 -*-
    22# This file is distributed under the same license as the Django package.
    33#
     4from __future__ import unicode_literals
    45
    56# The *_FORMAT strings use the Django date format syntax,
    67# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
    7 DATE_FORMAT = r'Y \m. F j \d.'
     8DATE_FORMAT = r'Y \m. E j \d.'
    89TIME_FORMAT = 'H:i:s'
    9 # DATETIME_FORMAT =
    10 # YEAR_MONTH_FORMAT =
    11 # MONTH_DAY_FORMAT =
    12 SHORT_DATE_FORMAT = 'Y.m.d'
    13 # SHORT_DATETIME_FORMAT =
    14 # FIRST_DAY_OF_WEEK =
     10DATETIME_FORMAT = r'Y \m. E j \d., H:i:s'
     11YEAR_MONTH_FORMAT = r'Y \m. F'
     12MONTH_DAY_FORMAT = r'E j \d.'
     13SHORT_DATE_FORMAT = 'Y-m-d'
     14SHORT_DATETIME_FORMAT = 'Y-m-d H:i'
     15FIRST_DAY_OF_WEEK = 1 #Monday
    1516
    1617# The *_INPUT_FORMATS strings use the Python strftime format syntax,
    1718# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
    18 # DATE_INPUT_FORMATS =
    19 # TIME_INPUT_FORMATS =
    20 # DATETIME_INPUT_FORMATS =
     19DATE_INPUT_FORMATS = (
     20    '%Y-%m-%d', '%d.%m.%Y', '%d.%m.%y', # '2006-10-25', '25.10.2006', '25.10.06'
     21)
     22TIME_INPUT_FORMATS = (
     23    '%H:%M:%S',     # '14:30:59'
     24    '%H:%M',     # '14:30'
     25    '%H.%M.%S', # '14.30.59'
     26    '%H.%M', # '14.30'
     27)
     28DATETIME_INPUT_FORMATS = (
     29    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
     30    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
     31    '%d.%m.%Y %H:%M:%S',     # '25.10.2006 14:30:59'
     32    '%d.%m.%Y %H:%M',        # '25.10.2006 14:30'
     33    '%d.%m.%Y',              # '25.10.2006'
     34    '%d.%m.%y %H:%M:%S',     # '25.10.06 14:30:59'
     35    '%d.%m.%y %H:%M',        # '25.10.06 14:30'
     36    '%d.%m.%y %H.%M.%S',     # '25.10.06 14.30.59'
     37    '%d.%m.%y %H.%M',        # '25.10.06 14.30'
     38    '%d.%m.%y',              # '25.10.06'
     39)
    2140DECIMAL_SEPARATOR = ','
    2241THOUSAND_SEPARATOR = '.'
    23 # NUMBER_GROUPING =
     42NUMBER_GROUPING = 3
Back to Top