Header And Logo

PostgreSQL
| The world's most advanced open source database.

pgtypes_date.h

Go to the documentation of this file.
00001 /* src/interfaces/ecpg/include/pgtypes_date.h */
00002 
00003 #ifndef PGTYPES_DATETIME
00004 #define PGTYPES_DATETIME
00005 
00006 #include <pgtypes_timestamp.h>
00007 
00008 typedef long date;
00009 
00010 #ifdef __cplusplus
00011 extern      "C"
00012 {
00013 #endif
00014 
00015 extern date *PGTYPESdate_new(void);
00016 extern void PGTYPESdate_free(date *);
00017 extern date PGTYPESdate_from_asc(char *, char **);
00018 extern char *PGTYPESdate_to_asc(date);
00019 extern date PGTYPESdate_from_timestamp(timestamp);
00020 extern void PGTYPESdate_julmdy(date, int *);
00021 extern void PGTYPESdate_mdyjul(int *, date *);
00022 extern int  PGTYPESdate_dayofweek(date);
00023 extern void PGTYPESdate_today(date *);
00024 extern int  PGTYPESdate_defmt_asc(date *, const char *, char *);
00025 extern int  PGTYPESdate_fmt_asc(date, const char *, char *);
00026 
00027 #ifdef __cplusplus
00028 }
00029 #endif
00030 
00031 #endif   /* PGTYPES_DATETIME */