MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / getDTString

Function getDTString

tools/comdb2ar/increment.cpp:363–376  ·  view source on GitHub ↗

Get the datetime as a string YYYYMMDDHHMMSS

Source from the content-addressed store, hash-verified

361
362// Get the datetime as a string YYYYMMDDHHMMSS
363std::string getDTString() {
364 time_t rawtime;
365 struct tm *timeinfo;
366 char buffer[80];
367
368 time(&rawtime);
369 struct tm mytime;
370 timeinfo = localtime_r(&rawtime, &mytime);
371
372 strftime(buffer, sizeof(buffer), "%Y%m%d%I%M%S", timeinfo);
373 std::string str(buffer);
374
375 return str;
376}
377
378void incr_deserialise_database(
379 const std::string& lrldestdir,

Callers 2

generate_fingerprintFunction · 0.85
serialise_databaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected