1 /*
2    Date manipulation routines
3    Copyright (C) 1999-2002, 2005, Joe Orton <joe@manyfish.co.uk>
4 
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Library General Public
7    License as published by the Free Software Foundation; either
8    version 2 of the License, or (at your option) any later version.
9 
10    This library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14 
15    You should have received a copy of the GNU Library General Public
16    License along with this library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18    MA 02111-1307, USA
19 
20 */
21 
22 #ifndef NE_DATES_H
23 #define NE_DATES_H
24 
25 #include <sys/types.h>
26 
27 #include "ne_defs.h"
28 
29 NE_BEGIN_DECLS
30 
31 /* Date manipulation routines as per RFC1123 and RFC1036 */
32 
33 /* Return current date/time in RFC1123 format */
34 char *ne_rfc1123_date(time_t anytime);
35 
36 /* Returns time from date/time using the subset of the ISO8601 format
37  * referenced in RFC2518 (e.g as used in the creationdate property in
38  * the DAV: namespace). */
39 time_t ne_iso8601_parse(const char *date);
40 
41 /* Returns time from date/time in RFC1123 format */
42 time_t ne_rfc1123_parse(const char *date);
43 
44 time_t ne_rfc1036_parse(const char *date);
45 
46 /* Parses asctime date string */
47 time_t ne_asctime_parse(const char *date);
48 
49 /* Parse an HTTP-date as per RFC2616 */
50 time_t ne_httpdate_parse(const char *date);
51 
52 NE_END_DECLS
53 
54 #endif /* NE_DATES_H */
55