Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10375 -- Added documentation about the default format strings …

…used for the `date` and `time` filters when no format string is passed to the filter, based on patch from kgrandis.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d8bffb39697e08e2eda79bbf4de2cd02b42acfa4 1 parent c823e9d
Gary Wilson Jr. authored March 31, 2009

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  docs/ref/templates/builtins.txt
14  docs/ref/templates/builtins.txt
@@ -866,6 +866,13 @@ If ``value`` is a ``datetime`` object (e.g., the result of
866 866
 ``datetime.datetime.now()``), the output will be the string
867 867
 ``'Wed 09 Jan 2008'``.
868 868
 
  869
+When used without a format string::
  870
+
  871
+    {{ value|date }}
  872
+
  873
+...the formatting string defined in the :setting:`DATE_FORMAT` setting will be
  874
+used.
  875
+
869 876
 .. templatefilter:: default
870 877
 
871 878
 default
@@ -1424,6 +1431,13 @@ For example::
1424 1431
 If ``value`` is equivalent to ``datetime.datetime.now()``, the output will be
1425 1432
 the string ``"01:23"``.
1426 1433
 
  1434
+When used without a format string::
  1435
+
  1436
+    {{ value|time }}
  1437
+
  1438
+...the formatting string defined in the :setting:`TIME_FORMAT` setting will be
  1439
+used.
  1440
+
1427 1441
 .. templatefilter:: timesince
1428 1442
 
1429 1443
 timesince

0 notes on commit d8bffb3

Please sign in to comment.
Something went wrong with that request. Please try again.