Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-imap/imap-date.h @ 956:26cafa3dc09c HEAD
minor optimization
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 12 Jan 2003 01:49:45 +0200 |
parents | efa46e28a0d7 |
children | 3767595e9069 |
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. */ int imap_parse_date(const char *str, time_t *time); int imap_parse_datetime(const char *str, time_t *time, int *timezone_offset); /* Returns given UTC time in given timezone. */ const char *imap_to_datetime_offset(time_t time, int timezone_offset); /* Returns given UTC time in local timezone. */ const char *imap_to_datetime(time_t time); #endif