~ubuntu-branches/ubuntu/hardy/libterralib/hardy

« back to all changes in this revision

Viewing changes to src/terralib/drivers/PostgreSQL/includepg/pgtypes_timestamp.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-25 22:32:59 UTC
  • Revision ID: james.westby@ubuntu.com-20051125223259-3zubal8ux4ki4fjg
Tags: upstream-3.0.3b2
ImportĀ upstreamĀ versionĀ 3.0.3b2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#ifdef __cplusplus
 
16
extern          "C"
 
17
{
 
18
#endif
 
19
 
 
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);
 
28
 
 
29
#ifdef __cplusplus
 
30
}
 
31
#endif
 
32
 
 
33
#endif   /* PGTYPES_TIMESTAMP */