summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-01-11 10:48:05 -0500
committerNick Mathewson <nickm@torproject.org>2012-01-11 12:08:01 -0500
commitb5af456685b502462385b5f1b7f22f4374822fe1 (patch)
tree109aaf6977d92f21bb5a8bb93dfb2ddb8e033c94 /src/common/util.h
parentc5b58df77588fd1307d248e75d360eb27023033c (diff)
downloadtor-b5af456685b502462385b5f1b7f22f4374822fe1.tar.gz
tor-b5af456685b502462385b5f1b7f22f4374822fe1.zip
Use spaceless ISO8601 time format, not sec,usec.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 77ed1ca5ee..bd471e3816 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -242,8 +242,11 @@ time_t tor_timegm(struct tm *tm);
void format_rfc1123_time(char *buf, time_t t);
int parse_rfc1123_time(const char *buf, time_t *t);
#define ISO_TIME_LEN 19
+#define ISO_TIME_USEC_LEN (ISO_TIME_LEN+7)
void format_local_iso_time(char *buf, time_t t);
void format_iso_time(char *buf, time_t t);
+void format_iso_time_nospace(char *buf, time_t t);
+void format_iso_time_nospace_usec(char *buf, const struct timeval *tv);
int parse_iso_time(const char *buf, time_t *t);
int parse_http_time(const char *buf, struct tm *tm);
int format_time_interval(char *out, size_t out_len, long interval);