#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <time.h>
#include "util.h"
void
g_get_current_time(&time);
timep = g_time_val_to_iso8601(&time);
#else
+#ifdef HAVE_API_WIN32_BASE
+ SYSTEMTIME ST;
+ GetSystemTime(&ST);
+ timep=g_strdup_printf("%d-%02d-%02dT%02d:%02d:%02dZ",ST.wYear,ST.wMonth,ST.wDay,ST.wHour,ST.wMinute,ST.wSecond);
+#else
time_t tnow;
struct tm *tm;
tnow = time(0);
timep=g_strdup(buffer);
}
#endif
+#endif
return timep;
}