如何转换日期字符串,格式为"MM-DD-YY HH:MM:SS",一个time_t用C或C++价值?
"MM-DD-YY HH:MM:SS"
time_t
用于strptime()将时间解析为a struct tm,然后用于mktime()转换为a time_t.
strptime()
struct tm
mktime()