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 
9 typedef long date;
10 
11 #ifdef __cplusplus
12 extern "C"
13 {
14 #endif
15 
16 extern date * PGTYPESdate_new(void);
17 extern void PGTYPESdate_free(date *);
18 extern date PGTYPESdate_from_asc(char *, char **);
19 extern char *PGTYPESdate_to_asc(date);
20 extern date PGTYPESdate_from_timestamp(timestamp);
21 extern void PGTYPESdate_julmdy(date, int *);
22 extern void PGTYPESdate_mdyjul(int *, date *);
23 extern int	PGTYPESdate_dayofweek(date);
24 extern void PGTYPESdate_today(date *);
25 extern int	PGTYPESdate_defmt_asc(date *, const char *, const char *);
26 extern int	PGTYPESdate_fmt_asc(date, const char *, char *);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
32 #endif							/* PGTYPES_DATETIME */
33