1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Convert UTC calendar time to simple time. Like mktime but assumes UTC.
4
5 Copyright (C) 1994-2019 Free Software Foundation, Inc.
6 This file is part of the GNU C Library.
7
8 The GNU C Library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public
10 License as published by the Free Software Foundation; either
11 version 3 of the License, or (at your option) any later version.
12
13 The GNU C Library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17
18 You should have received a copy of the GNU General Public
19 License along with the GNU C Library; if not, see
20 <http://www.gnu.org/licenses/>. */
21
22 #ifndef _LIBC
23 # include <config.h>
24 #endif
25
26 #include <time.h>
27
28 #include "mktime-internal.h"
29
30 time_t
timegm(struct tm * tmp)31 timegm (struct tm *tmp)
32 {
33 static mktime_offset_t gmtime_offset;
34 tmp->tm_isdst = 0;
35 return __mktime_internal (tmp, __gmtime_r, &gmtime_offset);
36 }
37