Get the datetime as a string YYYYMMDDHHMMSS
| 361 | |
| 362 | // Get the datetime as a string YYYYMMDDHHMMSS |
| 363 | std::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 | |
| 378 | void incr_deserialise_database( |
| 379 | const std::string& lrldestdir, |
no outgoing calls
no test coverage detected