summaryrefslogtreecommitdiffstats
path: root/Help/release
diff options
context:
space:
mode:
authorPeter Würth <wuerth.peter@freenet.de>2022-01-27 14:20:15 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-28 11:23:57 (GMT)
commitc050d6a01e14500903619589e69a973f1215d109 (patch)
treed78eb4dec319610788d4518d2fe3225e889b9b7c /Help/release
parent44939f01e761568ab9fe511d2ddf81a48c7c54b9 (diff)
downloadCMake-c050d6a01e14500903619589e69a973f1215d109.zip
CMake-c050d6a01e14500903619589e69a973f1215d109.tar.gz
CMake-c050d6a01e14500903619589e69a973f1215d109.tar.bz2
string(TIMESTAMP): add %f specifier for microseconds
The %f specified extends the string(TIMESTAMP) and file(TIMESTAMP) commands to output the timestamp with a microsecond resolution. This convention is offered by python's datetime module. Before, the precision was limited to seconds. The implementation is done by extending existing cmTimestamp methods with a `microseconds` parameter. This parameter is optional in order to be backwards compatible. The timestamps are now received in a cross-platform manner using libuv, since the standard C functions like time() don't allow for sub-second precision. This requires libuv 1.28 or higher. We already require higher than that on Windows, so update the required version for other platforms. Implements: #19335
Diffstat (limited to 'Help/release')
-rw-r--r--Help/release/dev/timestamp-microseconds.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/release/dev/timestamp-microseconds.rst b/Help/release/dev/timestamp-microseconds.rst
new file mode 100644
index 0000000..0c95eb4
--- /dev/null
+++ b/Help/release/dev/timestamp-microseconds.rst
@@ -0,0 +1,5 @@
+timestamp-microseconds
+----------------------
+
+* The :command:`string(TIMESTAMP)` and :command:`file(TIMESTAMP)` commands now
+ support the ``%f`` specifier for microseconds.