Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-imap/imap-date.h @ 7182:efc78f6db374 HEAD
Added tag 1.1.beta14 for changeset 88de748a2f17
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 20 Jan 2008 14:55:38 +0200 |
parents | e4eb71ae8e96 |
children | 1a58b18652a6 |
line wrap: on
line source
#ifndef IMAP_DATE_H #define IMAP_DATE_H /* Parses IMAP date/time string and returns TRUE if the string is valid. time_t is filled with UTC date. timezone_offset is filled with parsed timezone. If no timezone is given, local timezone is assumed. If date is too low or too high to fit to time_t, it's set to lowest/highest allowed value. This allows you to use the value directly for comparing timestamps. */ 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