view src/lib/utc-mktime.h @ 22553:7db517071db5

lib: Add multiplex stream support This allows having multiple channels of data in single stream.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Tue, 22 Aug 2017 10:14:22 +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