1/* 2 * Copyright 2003-2007 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _PARSEDATE_H 6#define _PARSEDATE_H 7 8 9#include <time.h> 10 11 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 18 19 20#ifdef __cplusplus 21extern "C" { 22#endif /* __cplusplus */ 23 24extern time_t parsedate(const char *dateString, time_t now); 25extern time_t parsedate_etc(const char *dateString, time_t now, int *_storedFlags); 26 27extern void set_dateformats(const char *table[]); 28extern const char **get_dateformats(void); 29 30#ifdef __cplusplus 31} 32#endif /* __cplusplus */ 33 34#endif /* _PARSEDATE_H */ 35