view src/lib-mail/message-date.h @ 22638:7d5634889da8

lib: net_ip2addr() - Optimize by allocating destination memory immediately It doesn't really matter if we allocate a few extra bytes.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 04 Nov 2017 01:42:37 +0200
parents 1a58b18652a6
children
line wrap: on
line source

#ifndef MESSAGE_DATE_H
#define MESSAGE_DATE_H

/* Parses RFC2822 date/time string. timezone_offset is filled with the
   timezone's difference to UTC in minutes. */
bool message_date_parse(const unsigned char *data, size_t size,
			time_t *timestamp_r, int *timezone_offset_r);

/* Create RFC2822 date/time string from given time in local timezone. */
const char *message_date_create(time_t timestamp);

#endif