PostgreSQL Source Code  git master
pgtypes_timestamp.h
Go to the documentation of this file.
1 /* src/interfaces/ecpg/include/pgtypes_timestamp.h */
2 
3 #ifndef PGTYPES_TIMESTAMP
4 #define PGTYPES_TIMESTAMP
5 
6 /* pgtypes_interval.h includes ecpg_config.h */
7 #include <pgtypes_interval.h>
8 
9 typedef int64 timestamp;
10 typedef int64 TimestampTz;
11 
12 #ifdef __cplusplus
13 extern "C"
14 {
15 #endif
16 
17 extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
20 extern int PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, const char *);
21 extern void PGTYPEStimestamp_current(timestamp *);
22 extern int PGTYPEStimestamp_defmt_asc(const char *, const char *, timestamp *);
23 extern int PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout);
24 extern int PGTYPEStimestamp_sub_interval(timestamp * tin, interval * span, timestamp * tout);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif /* PGTYPES_TIMESTAMP */
int PGTYPEStimestamp_sub(timestamp *, timestamp *, interval *)
Definition: timestamp.c:803
int PGTYPEStimestamp_sub_interval(timestamp *tin, interval *span, timestamp *tout)
Definition: timestamp.c:927
int64 timestamp
int PGTYPEStimestamp_defmt_asc(const char *, const char *, timestamp *)
Definition: timestamp.c:816
int PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, const char *)
Definition: timestamp.c:788
void PGTYPEStimestamp_current(timestamp *)
Definition: timestamp.c:299
int PGTYPEStimestamp_add_interval(timestamp *tin, interval *span, timestamp *tout)
Definition: timestamp.c:868
char * PGTYPEStimestamp_to_asc(timestamp)
Definition: timestamp.c:277
timestamp PGTYPEStimestamp_from_asc(char *, char **)
Definition: timestamp.c:207
int64 TimestampTz