summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-14 15:53:37 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-14 15:53:37 (GMT)
commit1f55680332c133fddce4a0b85cfb7ee1a20cff75 (patch)
tree7cc80032918bf19095fe31fb7d52b29e6c1d64e8 /Source/cmSystemTools.cxx
parentd9a74e1b1e18156be224697383b571ad9af4336c (diff)
downloadCMake-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.cxx9
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);