mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-16 02:18:27 -07:00
9 lines
185 B
C
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);
|
|
}
|