recorder/util.c
2015-08-22 15:52:39 +02:00

9 lines
185 B
C

#include "util.h"
const char *isotime(time_t t) {
static char buf[] = "YYYY-MM-DDTHH:MM:SSZ";
strftime(buf, sizeof(buf), "%FT%TZ", gmtime(&t));
return(buf);
}