The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=15238 ====================================================================== Reported By: Dudi Assigned To: ====================================================================== Project: CMake Issue ID: 15238 Category: CMake Reproducibility: N/A Severity: feature Priority: low Status: new ====================================================================== Date Submitted: 2014-11-09 04:42 EST Last Modified: 2014-11-09 04:42 EST ====================================================================== Summary: Add timestamp in seconds starts at the Unix Epoch on January 1st, 1970 at UTC. Description: It would be great to add this small feature, it is often used (by me) for easy remember the compilation time (while making a build).
I propose: string(TIMESTAMP "%e" [<format string>] [UTC]) It will return: 1415525945 ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-11-09 04:42 Dudi New Issue ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers