#include <ctime>
std::string getNowTime() {
time_t t = time(nullptr);
struct tm *sTime = localtime(&t);
char tmp[32]{0};
snprintf(tmp, sizeof(tmp), "%04d-%02d-%02d %02d:%02d:%02d", 1900 + sTime->tm_year, 1 + sTime->tm_mon,
sTime->tm_mday, sTime->tm_hour, sTime->tm_min, sTime->tm_sec);
return tmp;
}
让火焰净化一切