1 #ifndef PGTYPES_TIMESTAMP
2 #define PGTYPES_TIMESTAMP
4 #include <pgtypes_interval.h>
6 #ifdef HAVE_INT64_TIMESTAMP
7 typedef int64 timestamp;
8 typedef int64 TimestampTz;
11 typedef double timestamp;
12 typedef double TimestampTz;
15 extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
16 extern char *PGTYPEStimestamp_to_asc(timestamp);
17 extern int PGTYPEStimestamp_sub(timestamp *, timestamp *, interval *);
18 extern int PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, char *);
19 extern void PGTYPEStimestamp_current(timestamp *);
20 extern int PGTYPEStimestamp_defmt_asc(char *, char *, timestamp *);
22 #endif /* PGTYPES_TIMESTAMP */