mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
18 lines
231 B
C
18 lines
231 B
C
/*
|
|
* gmtime_r.c
|
|
*/
|
|
|
|
#include <time.h>
|
|
|
|
#define _GMT_OFFSET 0
|
|
|
|
struct tm *
|
|
_DEFUN (gmtime_r, (tim_p, res),
|
|
_CONST time_t * tim_p _AND
|
|
struct tm *res)
|
|
{
|
|
time_t tim = *tim_p + _GMT_OFFSET;
|
|
|
|
return (localtime_r (&tim, res));
|
|
}
|