summaryrefslogtreecommitdiffstats
path: root/src/lib/utc-mktime.h
blob: 9f32f6eb360b4a3ba287a4b418dfd40a990ba9c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#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