CMake: Extend TIMESTAMP sub-commands with new unix time format specifier

The new `%s` format specifier is substituted by file()/string()
`TIMESTAMP` sub-commands with the number of seconds since unix-epoch
(1970-01-01 00:00:00 UTC).

Co-Author: Nils Gladitz <nilsgladitz@gmail.com>
This commit is contained in:
Jose-Luis Blanco-Claraco
2016-02-16 21:48:56 +01:00
committed by Brad King
parent 8dfb6f8b37
commit 6727270b75
6 changed files with 101 additions and 9 deletions

View File

@@ -277,6 +277,7 @@ specifiers:
%j The day of the current year (001-366).
%m The month of the current year (01-12).
%M The minute of the current hour (00-59).
%s Seconds since midnight (UTC) 1-Jan-1970 (UNIX time).
%S The second of the current minute.
60 represents a leap second. (00-60)
%U The week number of the current year (00-53).