https://github.com/Kitware/CMake
Revision f7f60ddcf90a1a4c41b1a0f931726ee0527949e3 authored by Neil Carlson on 15 January 2020, 19:04:32 UTC, committed by Brad King on 15 January 2020, 19:12:22 UTC
They use a `.sub` extension. Fixes: #20220
1 parent 512ab50
Tip revision: f7f60ddcf90a1a4c41b1a0f931726ee0527949e3 authored by Neil Carlson on 15 January 2020, 19:04:32 UTC
Fortran: Add support for NAG Fortran submodules
Fortran: Add support for NAG Fortran submodules
Tip revision: f7f60dd
cmTimestamp.h
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmTimestamp_h
#define cmTimestamp_h
#include "cmConfigure.h" // IWYU pragma: keep
#include <ctime>
#include <string>
/** \class cmTimestamp
* \brief Utility class to generate string representation of a timestamp
*
*/
class cmTimestamp
{
public:
std::string CurrentTime(const std::string& formatString, bool utcFlag);
std::string FileModificationTime(const char* path,
const std::string& formatString,
bool utcFlag);
std::string CreateTimestampFromTimeT(time_t timeT, std::string formatString,
bool utcFlag) const;
private:
time_t CreateUtcTimeTFromTm(struct tm& timeStruct) const;
std::string AddTimestampComponent(char flag, struct tm& timeStruct,
time_t timeT) const;
};
#endif
Computing file changes ...