2 * Copyright 2003-2007 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
12 /* flags that will be set in the flags field by parsedate_etc() */
13 #define PARSEDATE_RELATIVE_TIME 0x0001
14 // ToDo: the following flags are not part of the R5 implementation and preliminary only
15 #define PARSEDATE_DAY_RELATIVE_TIME PARSEDATE_RELATIVE_TIME
16 #define PARSEDATE_MINUTE_RELATIVE_TIME 0x0002
17 #define PARSEDATE_INVALID_DATE 0x0100
22 #endif /* __cplusplus */
24 extern time_t parsedate(const char *dateString
, time_t now
);
25 extern time_t parsedate_etc(const char *dateString
, time_t now
, int *_storedFlags
);
27 extern void set_dateformats(const char *table
[]);
28 extern const char **get_dateformats(void);
32 #endif /* __cplusplus */
34 #endif /* _PARSEDATE_H */