time_t和tm互换

time_t mktime(struct tm *tm);
struct tm *gmtime(const time_t *timep);
struct tm *gmtime_r(const time_t *timep, struct tm *result);
struct tm *localtime(const time_t *timep);
struct tm *localtime_r(const time_t *timep, struct tm *result);
------------------------------------
Other:
time_t timelocal(struct tm *tm);
time_t timegm(struct tm *tm);

你可能感兴趣的:(time_t和tm互换)