mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 06:02:04 +00:00
add timegm function (inverse of gmtime), nonstandard
This commit is contained in:
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);
|
||||
}
|
Reference in New Issue
Block a user