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;
20
extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
21
extern char *PGTYPEStimestamp_to_asc(timestamp);
22
extern int PGTYPEStimestamp_sub(timestamp *, timestamp *, interval *);
23
extern int PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, char *);
24
extern void PGTYPEStimestamp_current(timestamp *);
25
extern int PGTYPEStimestamp_defmt_asc(char *, char *, timestamp *);
26
extern int PGTYPEStimestamp_add_interval(timestamp *tin, interval *span, timestamp *tout);
27
extern int PGTYPEStimestamp_sub_interval(timestamp *tin, interval *span, timestamp *tout);
33
#endif /* PGTYPES_TIMESTAMP */