Mercurial > dovecot > core-2.2
view src/lib-imap/imap-date.h @ 3863:55df57c028d4 HEAD
Added "bool" type and changed all ints that were used as booleans to bool.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jan 2006 22:25:57 +0200 |
parents | 3767595e9069 |
children | bbd2b811d3e6 |
line wrap: on
line source
#ifndef __IMAP_DATE_H #define __IMAP_DATE_H /* Parses IMAP date/time string. time_t is filled with UTC date. timezone_offset is filled with parsed timezone. If no timezone is given, local timezone is assumed. */ bool imap_parse_date(const char *str, time_t *time); bool imap_parse_datetime(const char *str, time_t *time, int *timezone_offset); /* Returns given UTC time in local timezone. */ const char *imap_to_datetime(time_t time); #endif