diff options
author | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2017-09-02 18:59:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-07 17:36:11 (GMT) |
commit | 014ad2989cb145586d6d32d90710a70fb9a23ad9 (patch) | |
tree | e04e7ad83dc8fd79e58724cea895d3bf75474a11 /Tests/RunCMake/string | |
parent | d2a707aaa47cfe123437012f7407c073d48006a2 (diff) | |
download | CMake-014ad2989cb145586d6d32d90710a70fb9a23ad9.zip CMake-014ad2989cb145586d6d32d90710a70fb9a23ad9.tar.gz CMake-014ad2989cb145586d6d32d90710a70fb9a23ad9.tar.bz2 |
Timestamp: support %A and %B
These are defined both by [1] and [2] to give full names of a weekday
and month.
[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html
[2] https://msdn.microsoft.com/de-de/library/fe06s4ak.aspx
Diffstat (limited to 'Tests/RunCMake/string')
-rw-r--r-- | Tests/RunCMake/string/Timestamp-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/string/Timestamp.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/string/Timestamp-stderr.txt b/Tests/RunCMake/string/Timestamp-stderr.txt index 653974c..cd4dcb3 100644 --- a/Tests/RunCMake/string/Timestamp-stderr.txt +++ b/Tests/RunCMake/string/Timestamp-stderr.txt @@ -1 +1 @@ -RESULT=2005-08-07 23:19:49 Sun Aug 05 day=219 wd=0 week=32 %I=11 epoch=1123456789 +RESULT=2005-08-07 23:19:49 Sunday=Sun August=Aug 05 day=219 wd=0 week=32 %I=11 epoch=1123456789 diff --git a/Tests/RunCMake/string/Timestamp.cmake b/Tests/RunCMake/string/Timestamp.cmake index d242039..cba258d 100644 --- a/Tests/RunCMake/string/Timestamp.cmake +++ b/Tests/RunCMake/string/Timestamp.cmake @@ -1,3 +1,3 @@ set(ENV{SOURCE_DATE_EPOCH} "1123456789") -string(TIMESTAMP RESULT "%Y-%m-%d %H:%M:%S %a %b %y day=%j wd=%w week=%U %%I=%I epoch=%s" UTC) +string(TIMESTAMP RESULT "%Y-%m-%d %H:%M:%S %A=%a %B=%b %y day=%j wd=%w week=%U %%I=%I epoch=%s" UTC) message("RESULT=${RESULT}") |