From 6f82bba82aa0cd1b028f158a5164592d9c70ce11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 23 Aug 2003 18:25:11 +0000 Subject: [PATCH] Adds our own, shiny, and almost BeOS compatible parsedate.h header (but not in the Posix dir). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4366 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/support/parsedate.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 headers/os/support/parsedate.h diff --git a/headers/os/support/parsedate.h b/headers/os/support/parsedate.h new file mode 100644 index 0000000000..3530babc1c --- /dev/null +++ b/headers/os/support/parsedate.h @@ -0,0 +1,33 @@ +#ifndef _PARSEDATE_H +#define _PARSEDATE_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ + + +#include + + +/* flags that will be set in the flags field by parsedate_etc() */ +#define PARSEDATE_RELATIVE_TIME 0x0001 +// ToDo: the following flags are not part of the R5 implementation and preliminary only +#define PARSEDATE_DAY_RELATIVE_TIME PARSEDATE_RELATIVE_TIME +#define PARSEDATE_MINUTE_RELATIVE_TIME 0x0002 +#define PARSEDATE_INVALID_DATE 0x0100 + + +#ifdef __cplusplus +extern "C" { +#endif + +extern time_t parsedate(const char *dateString, time_t now); +extern time_t parsedate_etc(const char *dateString, time_t now, int *_storedFlags); + +extern void set_dateformats(const char *table[]); +extern const char **get_dateformats(void); + +#ifdef __cplusplus +} +#endif + +#endif /* _PARSEDATE_H */