2007-01-26 19:36:29 +03:00
|
|
|
/*
|
2014-06-25 03:25:27 +04:00
|
|
|
* Copyright 2003-2007 Haiku, Inc. All rights reserved.
|
2007-01-26 19:36:29 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2003-08-23 22:25:11 +04:00
|
|
|
#ifndef _PARSEDATE_H
|
|
|
|
#define _PARSEDATE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
|
|
|
|
/* 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" {
|
2014-06-25 03:25:27 +04:00
|
|
|
#endif /* __cplusplus */
|
2003-08-23 22:25:11 +04:00
|
|
|
|
2007-01-26 19:36:29 +03:00
|
|
|
extern time_t parsedate(const char *dateString, time_t now);
|
|
|
|
extern time_t parsedate_etc(const char *dateString, time_t now, int *_storedFlags);
|
2003-08-23 22:25:11 +04:00
|
|
|
|
2007-01-26 19:36:29 +03:00
|
|
|
extern void set_dateformats(const char *table[]);
|
2003-08-23 22:25:11 +04:00
|
|
|
extern const char **get_dateformats(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2014-06-25 03:25:27 +04:00
|
|
|
#endif /* __cplusplus */
|
2003-08-23 22:25:11 +04:00
|
|
|
|
|
|
|
#endif /* _PARSEDATE_H */
|