#include <time.h>
#include <stdbool.h>
#include <common/macros.h>
+#include <common/compat/time.h>
#define MSEC_PER_SEC 1000ULL
#define NSEC_PER_SEC 1000000000ULL
#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);
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 */