PostgreSQL Source Code  git master
pgtypes_date.h
Go to the documentation of this file.
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);
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 */
int PGTYPESdate_defmt_asc(date *, const char *, const char *)
Definition: datetime.c:331
date PGTYPESdate_from_asc(char *, char **)
Definition: datetime.c:47
void PGTYPESdate_julmdy(date, int *)
Definition: datetime.c:115
int64 timestamp
void PGTYPESdate_today(date *)
Definition: datetime.c:148
long date
Definition: pgtypes_date.h:9
char * PGTYPESdate_to_asc(date)
Definition: datetime.c:101
int PGTYPESdate_fmt_asc(date, const char *, char *)
Definition: datetime.c:169
void PGTYPESdate_mdyjul(int *, date *)
Definition: datetime.c:128
int PGTYPESdate_dayofweek(date)
Definition: datetime.c:138
void PGTYPESdate_free(date *)
Definition: datetime.c:25
date * PGTYPESdate_new(void)
Definition: datetime.c:15
date PGTYPESdate_from_timestamp(timestamp)
Definition: datetime.c:31