mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 00:58:59 -05:00
string(TIMESTAMP): Add %z and %Z for adding time zone string
Fixes: #24056
This commit is contained in:
committed by
Brad King
parent
2954a810ce
commit
9da542d5c1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user