标签:localtime 获取 color blog return etc getc 时间 turn
struct tm* GetCurTime(time_t inTime) { struct tm* curTime = localtime(&inTime); curTime->tm_year += 1900; curTime->tm_mon += 1; return curTime; }
标签:localtime 获取 color blog return etc getc 时间 turn
原文地址:http://www.cnblogs.com/brianyi/p/6483028.html