Ticket #14821: formats_doc.diff

File formats_doc.diff, 929 bytes (added by Claude Paroz, 14 years ago)

Formats explanations

  • django/conf/locale/en/formats.py

    diff --git a/django/conf/locale/en/formats.py b/django/conf/locale/en/formats.py
    index c59a94a..b5ec639 100644
    a b  
    22# This file is distributed under the same license as the Django package.
    33#
    44
     5# FORMAT strings are using the Django date syntax
     6# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
    57DATE_FORMAT = 'N j, Y'
    68TIME_FORMAT = 'P'
    79DATETIME_FORMAT = 'N j, Y, P'
    MONTH_DAY_FORMAT = 'F j'  
    1012SHORT_DATE_FORMAT = 'm/d/Y'
    1113SHORT_DATETIME_FORMAT = 'm/d/Y P'
    1214FIRST_DAY_OF_WEEK = 0 # Sunday
     15
     16# Input formats are using the python strftime syntax
     17# http://docs.python.org/library/datetime.html#strftime-strptime-behavior
    1318DATE_INPUT_FORMATS = (
    1419    '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
    1520    # '%b %d %Y', '%b %d, %Y',            # 'Oct 25 2006', 'Oct 25, 2006'
Back to Top