From a4d4e766e38c7c8aa0c842e6de84b912c9fcaed7 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 29 Nov 2020 00:50:33 -0500 Subject: Revert to old quoting style in atom --- archive.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'archive.h') diff --git a/archive.h b/archive.h index 3328340..8576df5 100644 --- a/archive.h +++ b/archive.h @@ -172,6 +172,14 @@ void concatData( void concatThreads(struct List threads, const struct Envelope *envelopes); void concatIndex(struct List threads, const struct Envelope *envelopes); +static inline struct ISO8601 { + char s[sizeof("0000-00-00T00:00:00Z")]; +} iso8601(time_t time) { + struct ISO8601 buf; + strftime(buf.s, sizeof(buf.s), "%FT%TZ", gmtime(&time)); + return buf; +} + struct Variable { const char *name; const char *value; -- cgit 1.4.1