Code snipplets
std::string get_cur_date_time_str() {
time_t now = time(NULL);
char buf[40];
strftime(buf, sizeof(buf), "%Y%m%d_%H%M%S", localtime(&now));
return buf;
}
std::string get_cur_date_time_str() {
time_t now = time(NULL);
char buf[40];
strftime(buf, sizeof(buf), "%Y%m%d_%H%M%S", localtime(&now));
return buf;
}