Move to new Build System
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "Util.h"
|
||||
#include <ctime>
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace Util {
|
||||
|
||||
std::string getTimeString()
|
||||
{
|
||||
time_t rawtime;
|
||||
struct tm* timeinfo;
|
||||
char buffer[80];
|
||||
|
||||
time (&rawtime);
|
||||
timeinfo = localtime(&rawtime);
|
||||
|
||||
strftime(buffer, 80, "%Y%m%d-%H%M%S", timeinfo);
|
||||
return std::string(buffer);
|
||||
}
|
||||
|
||||
} // namespace Util
|
||||
|
||||
Reference in New Issue
Block a user