view src/lib/utc-mktime.h @ 22955:812e5c961328

fts: Indexing virtual mailbox didn't always index the last mails
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 03 May 2018 18:33:00 +0300
parents c4584d7dc07e
children
line wrap: on
line source

#ifndef UTC_MKTIME_H
#define UTC_MKTIME_H

#include <time.h>

/* Like mktime(), but assume that tm is in UTC. Unlike mktime(), values in
   tm fields must be in valid range. Leap second is accepted any time though
   since utc_mktime is often used before applying the time zone offset. */
time_t utc_mktime(const struct tm *tm);

#endif