]> granicus.if.org Git - postgresql/blob - src/interfaces/ecpg/include/pgtypes_date.h
391eeedce8c10b6f129e79b1485d8820d76213af
[postgresql] / src / interfaces / ecpg / include / pgtypes_date.h
1 #ifndef PGTYPES_DATETIME
2 #define PGTYPES_DATETIME
3
4 #include <pgtypes_timestamp.h>
5
6 #define Date long
7
8 extern Date PGTYPESdate_from_asc(char *, char **);
9 extern char *PGTYPESdate_to_asc(Date);
10 extern Date PGTYPESdate_from_timestamp(Timestamp);
11 extern void PGTYPESdate_julmdy(Date, int *);
12 extern void PGTYPESdate_mdyjul(int *, Date *);
13 extern int      PGTYPESdate_dayofweek(Date);
14 extern void PGTYPESdate_today(Date *);
15 extern int      PGTYPESdate_defmt_asc(Date *, char *, char *);
16 extern int      PGTYPESdate_fmt_asc(Date, char *, char *);
17
18 #endif   /* PGTYPES_DATETIME */