提交 23be72ae 编写于 作者: R Rich Felker

add timegm function (inverse of gmtime), nonstandard

上级 2169265e
......@@ -114,6 +114,9 @@ struct tm *getdate (const char *);
int stime(time_t *);
#endif
#if defined(_GNU_SOURCE)
time_t timegm(struct tm *);
#endif
#ifdef __cplusplus
}
......
#define _GNU_SOURCE
#include <time.h>
#include "__time.h"
time_t timegm(struct tm *tm)
{
return __tm_to_time(tm);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册