diff options
author | Vasiliy Koyrev <ezqc123@gmail.com> | 2022-10-13 08:55:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-27 15:13:46 (GMT) |
commit | 9da542d5c1c983b9ea608b7fc04d75826278564f (patch) | |
tree | 27aadcd7ed112bf15d18311ab6fcff2d3dafe68b /Help | |
parent | 2954a810ced784b04ec22bcdadb18bd73409c2a2 (diff) | |
download | CMake-9da542d5c1c983b9ea608b7fc04d75826278564f.zip CMake-9da542d5c1c983b9ea608b7fc04d75826278564f.tar.gz CMake-9da542d5c1c983b9ea608b7fc04d75826278564f.tar.bz2 |
string(TIMESTAMP): Add %z and %Z for adding time zone string
Fixes: #24056
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/string.rst | 11 | ||||
-rw-r--r-- | Help/release/dev/timestamp-timezone.rst | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst index 86cbd2e..217157c 100644 --- a/Help/command/string.rst +++ b/Help/command/string.rst @@ -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. diff --git a/Help/release/dev/timestamp-timezone.rst b/Help/release/dev/timestamp-timezone.rst new file mode 100644 index 0000000..178fa9a --- /dev/null +++ b/Help/release/dev/timestamp-timezone.rst @@ -0,0 +1,5 @@ +timestamp-timezone +------------------ + +* The :command:`string(TIMESTAMP)` and :command:`file(TIMESTAMP)` commands + now support the ``%z`` and ``%Z`` specifiers for the time zone. |