|
|
@@ -71,6 +71,24 @@ std::string cmCTestVC::ComputeCommandLine(char const* const* cmd)
|
|
|
return line.str();
|
|
|
}
|
|
|
|
|
|
+//----------------------------------------------------------------------------
|
|
|
+std::string cmCTestVC::GetNightlyTime()
|
|
|
+{
|
|
|
+ // Get the nightly start time corresponding to the current dau.
|
|
|
+ struct tm* t = this->CTest->GetNightlyTime(
|
|
|
+ this->CTest->GetCTestConfiguration("NightlyStartTime"),
|
|
|
+ this->CTest->GetTomorrowTag());
|
|
|
+ char current_time[1024];
|
|
|
+ sprintf(current_time, "%04d-%02d-%02d %02d:%02d:%02d",
|
|
|
+ t->tm_year + 1900,
|
|
|
+ t->tm_mon + 1,
|
|
|
+ t->tm_mday,
|
|
|
+ t->tm_hour,
|
|
|
+ t->tm_min,
|
|
|
+ t->tm_sec);
|
|
|
+ return current_time;
|
|
|
+}
|
|
|
+
|
|
|
//----------------------------------------------------------------------------
|
|
|
void cmCTestVC::Cleanup()
|
|
|
{
|