summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/string/Timestamp.cmake
blob: cba258d12bf4582517328e1be5142ed55b1eb5b5 (plain)
1
2
3
set(ENV{SOURCE_DATE_EPOCH} "1123456789")
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}")