split out isotime

This commit is contained in:
Jan-Piet Mens 2015-08-22 15:53:11 +02:00
parent 27336e9b0d
commit 0ae3df8466

View File

@ -19,6 +19,7 @@
#include "safewrite.h"
#include "base64.h"
#include "misc.h"
#include "util.h"
#define SSL_VERIFY_PEER (1)
@ -111,13 +112,6 @@ JsonNode *extract(struct udata *ud, char *payload, char *tid, char *t, double *l
return (json);
}
static const char *isotime(time_t t) {
static char buf[] = "YYYY-MM-DDTHH:MM:SSZ";
strftime(buf, sizeof(buf), "%FT%TZ", gmtime(&t));
return(buf);
}
static const char *ltime(time_t t) {
static char buf[] = "HH:MM:SS";