Commit 0aef230a authored by Mark Andrews's avatar Mark Andrews
Browse files

remove duplicate function

parent 43406aa1
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: time.c,v 1.40 2006/12/22 01:59:44 marka Exp $ */
/* $Id: time.c,v 1.41 2006/12/22 05:18:53 marka Exp $ */
#include <config.h>
......@@ -269,23 +269,3 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
buf[0] = 0;
}
}
void
isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
SYSTEMTIME st;
char DateBuf[50];
char TimeBuf[50];
REQUIRE(len > 0);
if (FileTimeToSystemTime(&t->absolute, &st)) {
GetDateFormat(LOCALE_USER_DEFAULT, 0, &st, "yyyy-MM-dd",
DateBuf, 50);
GetTimeFormat(LOCALE_USER_DEFAULT,
TIME_NOTIMEMARKER | TIME_FORCE24HOURFORMAT,
&st, "hh':'mm':'ss", TimeBuf, 50);
snprintf(buf, len, "%sT%sZ", DateBuf, TimeBuf);
} else {
buf[0] = 0;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment