haiku/headers/os/support/parsedate.h
Axel Dörfler 087882c26e * Rewrote headers as necessary; only Errors.h and Debug.h still originate from a Be header now;
feel free to change that ;-)
* Cleaned up existing headers.
* Coding style guide update to BBufferIO (renamed m_* members to f*).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 16:36:29 +00:00

35 lines
859 B
C

/*
* Copyright 2003-2007, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#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" {
#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 */