string(TIMESTAMP): Add %z and %Z for adding time zone string

Fixes: #24056
This commit is contained in:
Vasiliy Koyrev
2022-10-13 11:55:54 +03:00
committed by Brad King
parent 2954a810ce
commit 9da542d5c1
8 changed files with 105 additions and 7 deletions
+11
View File
@@ -522,6 +522,17 @@ specifiers:
``%Y``
The current year.
``%z``
.. versionadded:: 3.26
The offset of the time zone from UTC, in hours and minutes,
with format ``+hhmm`` or ``-hhmm``.
``%Z``
.. versionadded:: 3.26
The time zone name.
Unknown format specifiers will be ignored and copied to the output
as-is.