vector<string> PinDetect::get_current_time()
{
SYSTEMTIME st = {
0 };
GetLocalTime(&st);
char tmpbuff[16];
sprintf(tmpbuff, "%d", st.wYear);
std::string year = tmpbuff;
sprintf(tmpbuff, "%d", st.wMonth);
std::string month = tmpbuff;
sprintf(tmpbuff, "%d", st.wDay);
std::string day = tmpbuff;
sprintf(tmpbuff, "%d", st.wHour);
std::string hour = tmpbuff;
sprintf(tmpbuff, "%d", st.wMinute);
std::string minute = tmpbuff;
sprintf(tmpbuff, "%d", st.wSecond);
std::string second = tmpbuff;
sprintf(tmpbuff, "%d", st.wMilliseconds);
std::string millisecond = tmpbuff;
std::vector<string>current_time = {
};
current_time.push_back(year + month + day);
current_time.push_back(hour + minute + second);
current_time.push_back(year + month + day + hour + minute + second);
current_time.push_back(year + "_" + month + "_" + day + "_" + hour + "_" + minute + "_" + second + "_" + millisecond);
return current_time;
}