OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / include / pgtypes_timestamp.h
1 #ifndef PGTYPES_TIMESTAMP
2 #define PGTYPES_TIMESTAMP
3
4 #include <pgtypes_interval.h>
5
6 #ifdef HAVE_INT64_TIMESTAMP
7 typedef int64 timestamp;
8 typedef int64 TimestampTz;
9
10 #else
11 typedef double timestamp;
12 typedef double TimestampTz;
13 #endif
14
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 *);
21
22 #endif   /* PGTYPES_TIMESTAMP */