projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Metadata: add env fields to ease life of viewer
[lttng-tools.git]
/
src
/
common
/
time.h
diff --git
a/src/common/time.h
b/src/common/time.h
index 24513d30bff11618deeeaa74de2c86974f2d5d5f..7e760599fd54ba6c2f0f8c2e400b5c4e00f1e0d1 100644
(file)
--- a/
src/common/time.h
+++ b/
src/common/time.h
@@
-46,6
+46,9
@@
bool locale_supports_utf8(void);
#define MIN_UNIT "m"
#define HR_UNIT "h"
#define MIN_UNIT "m"
#define HR_UNIT "h"
+#define ISO8601_FORMAT "%Y%m%dT%H%M%S%z"
+#define ISO8601_LEN 21
+
/*
* timespec_to_ms: Convert timespec to milliseconds.
*
/*
* timespec_to_ms: Convert timespec to milliseconds.
*
@@
-61,4
+64,10
@@
int timespec_to_ms(struct timespec ts, unsigned long *ms);
LTTNG_HIDDEN
struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b);
LTTNG_HIDDEN
struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b);
+/*
+ * Format time_t to ISO8601 compatible format.
+ */
+LTTNG_HIDDEN
+int time_t_to_ISO8601(char *s, size_t s_size, time_t time);
+
#endif /* LTTNG_TIME_H */
#endif /* LTTNG_TIME_H */
This page took
0.023832 seconds
and
5
git commands to generate.