PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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_timestamp.h>
7 
8 typedef long date;
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
15 extern date * PGTYPESdate_new(void);
16 extern void PGTYPESdate_free(date *);
17 extern date PGTYPESdate_from_asc(char *, char **);
18 extern char *PGTYPESdate_to_asc(date);
20 extern void PGTYPESdate_julmdy(date, int *);
21 extern void PGTYPESdate_mdyjul(int *, date *);
22 extern int PGTYPESdate_dayofweek(date);
23 extern void PGTYPESdate_today(date *);
24 extern int PGTYPESdate_defmt_asc(date *, const char *, char *);
25 extern int PGTYPESdate_fmt_asc(date, const char *, char *);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif /* PGTYPES_DATETIME */
date PGTYPESdate_from_asc(char *, char **)
Definition: datetime.c:48
void PGTYPESdate_julmdy(date, int *)
Definition: datetime.c:116
int64 timestamp
void PGTYPESdate_today(date *)
Definition: datetime.c:149
long date
Definition: pgtypes_date.h:8
char * PGTYPESdate_to_asc(date)
Definition: datetime.c:102
int PGTYPESdate_fmt_asc(date, const char *, char *)
Definition: datetime.c:170
void PGTYPESdate_mdyjul(int *, date *)
Definition: datetime.c:129
int PGTYPESdate_dayofweek(date)
Definition: datetime.c:139
int PGTYPESdate_defmt_asc(date *, const char *, char *)
Definition: datetime.c:332
void PGTYPESdate_free(date *)
Definition: datetime.c:26
date * PGTYPESdate_new(void)
Definition: datetime.c:16
date PGTYPESdate_from_timestamp(timestamp)
Definition: datetime.c:32