Ticket #10375: builtins.diff

File builtins.diff, 863 bytes (added by kgrandis, 14 years ago)
  • ref/templates/builtins.txt

     
    864864
    865865If ``value`` is a ``datetime`` object (e.g., the result of
    866866``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
     869not specified.
    868870
    869871.. templatefilter:: default
    870872
     
    14221424    {{ value|time:"H:i" }}
    14231425
    14241426If ``value`` is equivalent to ``datetime.datetime.now()``, the output will be
    1425 the string ``"01:23"``.
     1427the string ``"01:23"``. The formatting string defined in :setting:`TIME_FORMAT`
     1428setting will be used if a format is not specified.
    14261429
    14271430.. templatefilter:: timesince
    14281431
Back to Top