13 #ifndef TOR_TIME_FMT_H
14 #define TOR_TIME_FMT_H
17 #ifdef HAVE_SYS_TYPES_H
18 #include <sys/types.h>
25 struct tm *
tor_gmtime_r(
const time_t *timep,
struct tm *result);
26 int tor_timegm(
const struct tm *tm, time_t *time_out);
28 #define RFC1123_TIME_LEN 29
31 #define ISO_TIME_LEN 19
32 #define ISO_TIME_USEC_LEN (ISO_TIME_LEN+7)
38 int parse_iso_time_(
const char *cp, time_t *t,
int strict,
int nospace);
int parse_http_time(const char *buf, struct tm *tm)
void format_iso_time_nospace(char *buf, time_t t)
void format_rfc1123_time(char *buf, time_t t)
void format_iso_time_nospace_usec(char *buf, const struct timeval *tv)
void format_iso_time(char *buf, time_t t)
int parse_iso_time_(const char *cp, time_t *t, int strict, int nospace)
void format_local_iso_time_nospace(char *buf, time_t t)
int parse_rfc1123_time(const char *buf, time_t *t)
void format_local_iso_time(char *buf, time_t t)
int parse_iso_time(const char *buf, time_t *t)
int tor_timegm(const struct tm *tm, time_t *time_out)
struct tm * tor_gmtime_r(const time_t *timep, struct tm *result)
int format_time_interval(char *out, size_t out_len, long interval)
int parse_iso_time_nospace(const char *cp, time_t *t)
struct tm * tor_localtime_r(const time_t *timep, struct tm *result)