summaryrefslogtreecommitdiff
path: root/src/shared/time-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/time-util.h')
-rw-r--r--src/shared/time-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/time-util.h b/src/shared/time-util.h
index b55a660bb0..fbfbcbffcc 100644
--- a/src/shared/time-util.h
+++ b/src/shared/time-util.h
@@ -107,3 +107,5 @@ int get_timezones(char ***l);
bool timezone_is_valid(const char *name);
clockid_t clock_boottime_or_monotonic(void);
+
+#define xstrftime(buf, fmt, tm) assert_se(strftime(buf, ELEMENTSOF(buf), fmt, tm) > 0)