From 25082c5fc47d0b337657476a0fa7ce989b9712ef Mon Sep 17 00:00:00 2001 From: ncteisen Date: Thu, 12 Jul 2018 17:24:48 -0700 Subject: Reviewer feedback --- src/core/lib/gpr/string.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core/lib/gpr/string.h') diff --git a/src/core/lib/gpr/string.h b/src/core/lib/gpr/string.h index 2e8a4898d9..ce51fe4632 100644 --- a/src/core/lib/gpr/string.h +++ b/src/core/lib/gpr/string.h @@ -21,6 +21,8 @@ #include +#include + #include #include @@ -81,6 +83,14 @@ char* gpr_strjoin_sep(const char** strs, size_t nstrs, const char* sep, void gpr_string_split(const char* input, const char* sep, char*** strs, size_t* nstrs); +/* Returns an allocated string that represents tm according to RFC-3339, and, + more specifically, follows: + https://developers.google.com/protocol-buffers/docs/proto3#json + + Uses RFC 3339, where generated output will always be Z-normalized and uses + 0, 3, 6 or 9 fractional digits. */ +char* gpr_format_timespec(gpr_timespec); + /* A vector of strings... for building up a final string one piece at a time */ typedef struct { char** strs; -- cgit v1.2.3