int year = 0;
int month = 0;
int day = 0;
sscanf((char*)strDateInfo,"%4d%2d%2d",&year, &month, &day);
struct tm paraTime = { 0, 0, 0, day, month - 1, year - 1900};
__time32_t curDay = _mktime32(¶Time);
__time32_t today;
_time32(&today);
struct tm* today_ptr = _localtime32(&today);
struct tm schd_start;
memcpy(&schd_start, today_ptr, sizeof(tm));
schd_start.tm_hour = 0;
schd_start.tm_min = 0;
schd_start.tm_sec = 0;
__time32_t stime = _mktime32(&schd_start);
标签:__,start,time32,mktime,schd,tm,today,localtime From: https://www.cnblogs.com/xiaoxiaoshi/p/17483692.html