view src/lib-mail/rfc822-date.h @ 896:21ffcce83c70 HEAD

Rewrote rfc822-tokenize.c to work one token at a time so it won't uselessly take memory, maybe also a bit faster. This caused pretty large changes all around. Also moved all string (un)escaping code to lib/strescape.c.
author Timo Sirainen <tss@iki.fi>
date Fri, 03 Jan 2003 17:57:12 +0200
parents efa46e28a0d7
children
line wrap: on
line source

#ifndef __RFC822_DATE
#define __RFC822_DATE

/* Parses RFC822 date/time string. timezone_offset is filled with the
   timezone's difference to UTC in minutes. */
int rfc822_parse_date(const char *data, time_t *time, int *timezone_offset);

/* Create RFC822 date/time string from given time in local timezone. */
const char *rfc822_to_date(time_t time);

#endif