time-util.c revision 1384fac439fea3026b16a9d8d24954200e413bcc
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294Timo Sirainen/* Copyright (c) 2008-2013 Dovecot authors, see the included COPYING file */
7ef3553585e556f35d5919589cfdc1de3329e4bbTimo Sirainenint timeval_cmp(const struct timeval *tv1, const struct timeval *tv2)
7ef3553585e556f35d5919589cfdc1de3329e4bbTimo Sirainenint timeval_diff_msecs(const struct timeval *tv1, const struct timeval *tv2)
7ef3553585e556f35d5919589cfdc1de3329e4bbTimo Sirainenlong long timeval_diff_usecs(const struct timeval *tv1,
c3c07d6527ad28c8546cbbf84c257d178e23c184Timo Sirainenconst char *t_strflocaltime(const char *fmt, time_t t)
c3c07d6527ad28c8546cbbf84c257d178e23c184Timo Sirainen while ((ret = strftime(buf, bufsize, fmt, tm)) == 0) {