1/* src/interfaces/ecpg/include/pgtypes_date.h */
2
3#ifndef PGTYPES_DATETIME
4#define PGTYPES_DATETIME
5
6#include <pgtypes.h>
7#include <pgtypes_timestamp.h>
8
9typedef long date;
10
11#ifdef __cplusplus
12extern "C"
13{
14#endif
15
16extern date * PGTYPESdate_new(void);
17extern void PGTYPESdate_free(date *);
18extern date PGTYPESdate_from_asc(char *, char **);
19extern char *PGTYPESdate_to_asc(date);
20extern date PGTYPESdate_from_timestamp(timestamp);
21extern void PGTYPESdate_julmdy(date, int *);
22extern void PGTYPESdate_mdyjul(int *, date *);
23extern int PGTYPESdate_dayofweek(date);
24extern void PGTYPESdate_today(date *);
25extern int PGTYPESdate_defmt_asc(date *, const char *, const char *);
26extern int PGTYPESdate_fmt_asc(date, const char *, char *);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* PGTYPES_DATETIME */
33