5.3.5.1 date="..." attribute
Description: date=
Keywords: albatross

###
5.3.5.1 `date="..."` attribute

If a `date` attribute is specified then the enclosed format string is passed to the Python `time.strftime()` function along with the result of the expression in the `expr` (5.3.5.2) attribute. The result of `time.strftime()` is then written to the output.

For example:

    >>> import albatross
    >>> import time
    >>> ctx = albatross.SimpleContext('.')
    >>> albatross.Template(ctx, '<magic>', '''
    ... The time is <al-value expr="time.mktime((2001,12,25,1,23,45,0,0,-1))"
    ...                       date="%H:%M:%S" whitespace>
    ... ''').to_html(ctx)
    >>> ctx.flush_content()
    The time is 01:23:45