xref: /haiku/headers/os/support/parsedate.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 #ifndef _PARSEDATE_H
2 #define _PARSEDATE_H
3 /*
4 ** Distributed under the terms of the OpenBeOS License.
5 */
6 
7 
8 #include <time.h>
9 
10 
11 /* flags that will be set in the flags field by parsedate_etc() */
12 #define PARSEDATE_RELATIVE_TIME			0x0001
13 // ToDo: the following flags are not part of the R5 implementation and preliminary only
14 #define PARSEDATE_DAY_RELATIVE_TIME		PARSEDATE_RELATIVE_TIME
15 #define PARSEDATE_MINUTE_RELATIVE_TIME	0x0002
16 #define PARSEDATE_INVALID_DATE			0x0100
17 
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 extern time_t	parsedate(const char *dateString, time_t now);
24 extern time_t	parsedate_etc(const char *dateString, time_t now, int *_storedFlags);
25 
26 extern void		set_dateformats(const char *table[]);
27 extern const char **get_dateformats(void);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif	/* _PARSEDATE_H */
34