Ticket #10375: builtins.diff
File builtins.diff, 863 bytes (added by , 16 years ago) |
---|
-
ref/templates/builtins.txt
864 864 865 865 If ``value`` is a ``datetime`` object (e.g., the result of 866 866 ``datetime.datetime.now()``), the output will be the string 867 ``'Wed 09 Jan 2008'``. 867 ``'Wed 09 Jan 2008'``. The formatting string defined in the 868 :setting:`DATE_FORMAT` setting will be used if a format is 869 not specified. 868 870 869 871 .. templatefilter:: default 870 872 … … 1422 1424 {{ value|time:"H:i" }} 1423 1425 1424 1426 If ``value`` is equivalent to ``datetime.datetime.now()``, the output will be 1425 the string ``"01:23"``. 1427 the string ``"01:23"``. The formatting string defined in :setting:`TIME_FORMAT` 1428 setting will be used if a format is not specified. 1426 1429 1427 1430 .. templatefilter:: timesince 1428 1431