std::wstring getCurrentTimeWstr()
{
time_t tt = time(NULL);//tt是一个时间戳
tm* t= localtime(&tt);
int year = t->tm_year + 1900;
int mon = t->tm_mon + 1;
int day = t->tm_mday;
int hour = t->tm_hour;
int min = t->tm_min;
int sec= t->tm_sec;
wostringstream tmp;
tmp<<year<<L"-"<<mon<<L"-"<<day<<L" "<<hour<<L":"<<min<<L":"<<sec;
std::wstring wtime = tmp.str();
return wtime;
}