diff options
author | Brad King <brad.king@kitware.com> | 2003-02-14 15:53:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-02-14 15:53:37 (GMT) |
commit | 1f55680332c133fddce4a0b85cfb7ee1a20cff75 (patch) | |
tree | 7cc80032918bf19095fe31fb7d52b29e6c1d64e8 /Source/cmSystemTools.cxx | |
parent | d9a74e1b1e18156be224697383b571ad9af4336c (diff) | |
download | CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.zip CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.tar.gz CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.tar.bz2 |
ENH: Added cmDocumentation class to generate various forms of documentation. Each executable will be able to generate its own documentation.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 4214132..49d6bd8 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2363,6 +2363,15 @@ void cmSystemTools::SplitProgramFromArgs(const char* path, args = ""; } +std::string cmSystemTools::GetCurrentDateTime(const char* format) +{ + char buf[1024]; + time_t t; + time(&t); + strftime(buf, sizeof(buf), format, localtime(&t)); + return buf; +} + std::string cmSystemTools::MakeCindentifier(const char* s) { std::string str(s); |