1999-09-23 14:34:27 -04:00
|
|
|
/*
|
2016-06-27 00:56:38 -04:00
|
|
|
* Copyright (C) 1999-2001, 2004, 2007, 2013, 2016 Internet Systems Consortium, Inc. ("ISC")
|
2000-07-31 21:33:37 -04:00
|
|
|
*
|
2016-06-27 00:56:38 -04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
1999-09-23 14:34:27 -04:00
|
|
|
*/
|
|
|
|
|
|
2007-06-19 19:47:24 -04:00
|
|
|
/* $Id: stdtime.c,v 1.12 2007/06/19 23:47:19 tbox Exp $ */
|
2001-07-06 01:08:39 -04:00
|
|
|
|
|
|
|
|
#include <config.h>
|
1999-09-23 14:34:27 -04:00
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
|
|
#include <isc/assertions.h>
|
|
|
|
|
#include <isc/stdtime.h>
|
2001-07-06 01:08:39 -04:00
|
|
|
#include <isc/util.h>
|
1999-09-23 14:34:27 -04:00
|
|
|
|
1999-12-16 18:29:07 -05:00
|
|
|
void
|
2000-01-04 15:21:03 -05:00
|
|
|
isc_stdtime_get(isc_stdtime_t *t) {
|
1999-09-23 14:34:27 -04:00
|
|
|
/*
|
|
|
|
|
* Set 't' to the number of seconds past 00:00:00 UTC, January 1, 1970.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
REQUIRE(t != NULL);
|
|
|
|
|
|
2013-12-03 20:47:23 -05:00
|
|
|
(void)_time32(t);
|
1999-09-23 14:34:27 -04:00
|
|
|
}
|