Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/utc-mktime.h @ 6483:6d15946eccb5 HEAD
Rewrote utc_mktime() so it's now MIT licensed. This also fixes handling
years older than 1970.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 23 Sep 2007 00:18:47 +0300 |
parents | e4eb71ae8e96 |
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. */ time_t utc_mktime(const struct tm *tm); #endif