1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
11 /** \class cmTimestamp
12 * \brief Utility class to generate string representation of a timestamp
18 std::string CurrentTime(const std::string& formatString, bool utcFlag) const;
20 std::string FileModificationTime(const char* path,
21 const std::string& formatString,
24 std::string CreateTimestampFromTimeT(time_t timeT, std::string formatString,
27 std::string CreateTimestampFromTimeT(time_t timeT, uint32_t microseconds,
28 std::string formatString,
32 time_t CreateUtcTimeTFromTm(struct tm& timeStruct) const;
34 std::string AddTimestampComponent(char flag, struct tm& timeStruct,
36 uint32_t microseconds = 0) const;