Skip to content

Commit e92e8ee

Browse files
Improve info
1 parent dc19344 commit e92e8ee

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/more/development/document-templates/specification.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ Here are described the changes in metamodel for template specification as well a
9696
Version 18.1 (since 4.31.0)
9797
---------------------------
9898

99-
* Added support for Python ``datetime`` and ``zoneinfo`` in templates.
99+
* Added:
100+
101+
* ``datetime`` = exposes datetime (https://docs.python.org/3/library/datetime.html) module from Python
102+
* ``zoneinfo`` = exposes zoneinfo (zoneinfo — IANA time zone support — Python 3.14.5 documentation) module from Python
100103

101104
Version 18.0 (since 4.29.0)
102105
---------------------------

docs/more/development/document-templates/steps/jinja.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ We provide several filters that can be used for conversion of values:
132132

133133
- ``iso_timestamp`` - ``datetime`` or ISO 8601 ``str``
134134
- ``fmt`` - datetime format passed to `strftime <https://docs.python.org/3/library/datetime.html#datetime.date.strftime>`__
135+
- ``tz`` (optional) - timezone name (e.g. ``"UTC"``, ``"Europe/Prague"``) for formatting the timestamp; if not provided, UTC is used
135136

136137
- ``of_alphabet`` = *Converts integer to characters*
137138

0 commit comments

Comments
 (0)