add timegm function (inverse of gmtime), nonstandard
This commit is contained in:
parent
2169265ec6
commit
23be72ae45
2 changed files with 12 additions and 0 deletions
9
src/time/timegm.c
Normal file
9
src/time/timegm.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <time.h>
|
||||
|
||||
#include "__time.h"
|
||||
|
||||
time_t timegm(struct tm *tm)
|
||||
{
|
||||
return __tm_to_time(tm);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue