[formatter] add 'D' conversion

This commit is contained in:
Mike Fährmann
2025-05-28 20:34:35 +02:00
parent 17b2910938
commit 539ed8fef4
3 changed files with 18 additions and 4 deletions

View File

@@ -140,6 +140,12 @@ Conversion specifiers allow to *convert* the value to a different form or type.
<td><code>{created!d}</code></td>
<td><code>2010-01-01 00:00:00</code></td>
</tr>
<tr>
<td align="center"><code>D</code></td>
<td>Convert a Unix timestamp or <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> string to a <code>datetime</code> object</td>
<td><code>{created!D}</code></td>
<td><code>2010-01-01 00:00:00</code></td>
</tr>
<tr>
<td align="center"><code>U</code></td>
<td>Convert HTML entities</td>