X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Ftime.hpp;h=34c41a08adbd9837018489546c4dcc2a7894bd36;hb=332a2147fece4548eac38a0929b208230a8da31f;hp=724b202b1025643ea503f5f7c6dd7a24b990c4e9;hpb=05aa7e19ec97871aad18d7c9787c4c89611cd2cd;p=lttng-tools.git diff --git a/src/common/time.hpp b/src/common/time.hpp index 724b202b1..34c41a08a 100644 --- a/src/common/time.hpp +++ b/src/common/time.hpp @@ -9,7 +9,10 @@ #define LTTNG_TIME_H #include +#include #include +#include + #include #include @@ -59,6 +62,13 @@ struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b); * Returns 0 on success, else -1 on error. */ int time_to_iso8601_str(time_t time, char *str, size_t len); +namespace lttng { +namespace utils { + +std::string time_to_iso8601_str(time_t time); + +} /* namespace utils */ +} /* namespace lttng */ int time_to_datetime_str(time_t time, char *str, size_t len);