relayd: introduce --group-output-by-session
[lttng-tools.git] / src / common / time.h
index 4cfdf856c521d155fe55dd7580d5180605097119..8588cf554c487912875253cd81f1631529bda38a 100644 (file)
@@ -38,6 +38,7 @@
 #define USEC_PER_HOURS  (USEC_PER_MINUTE * MINUTE_PER_HOUR)
 
 #define ISO8601_STR_LEN sizeof("YYYYmmddTHHMMSS+HHMM")
+#define DATETIME_STR_LEN sizeof("YYYYmmdd-HHMMSS")
 
 LTTNG_HIDDEN
 bool locale_supports_utf8(void);
@@ -74,4 +75,7 @@ struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b);
 LTTNG_HIDDEN
 int time_to_iso8601_str(time_t time, char *str, size_t len);
 
+LTTNG_HIDDEN
+int time_to_datetime_str(time_t time, char *str, size_t len);
+
 #endif /* LTTNG_TIME_H */
This page took 0.024075 seconds and 4 git commands to generate.