/* Convert `time_t' to `struct tm' in UTC.
- Copyright (C) 1991, 93, 95, 96, 97, 98, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1991-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
#include <time.h>
/* Return the `struct tm' representation of *T in UTC,
using *TP to store the result. */
struct tm *
-__gmtime_r (t, tp)
- const time_t *t;
- struct tm *tp;
+__gmtime_r (const time_t *t, struct tm *tp)
{
return __tz_convert (t, 0, tp);
}
/* Return the `struct tm' representation of *T in UTC. */
struct tm *
-gmtime (t)
- const time_t *t;
+gmtime (const time_t *t)
{
return __tz_convert (t, 0, &_tmbuf);
}