greenplumn pgtypes_timestamp 源码

  • 2022-08-18
  • 浏览 (359)

greenplumn pgtypes_timestamp 代码

文件路径:/src/interfaces/ecpg/include/pgtypes_timestamp.h

/* src/interfaces/ecpg/include/pgtypes_timestamp.h */

#ifndef PGTYPES_TIMESTAMP
#define PGTYPES_TIMESTAMP

#include <pgtypes.h>
/* pgtypes_interval.h includes ecpg_config.h */
#include <pgtypes_interval.h>

typedef int64 timestamp;
typedef int64 TimestampTz;

#ifdef __cplusplus
extern "C"
{
#endif

extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
extern char *PGTYPEStimestamp_to_asc(timestamp);
extern int	PGTYPEStimestamp_sub(timestamp *, timestamp *, interval *);
extern int	PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, const char *);
extern void PGTYPEStimestamp_current(timestamp *);
extern int	PGTYPEStimestamp_defmt_asc(const char *, const char *, timestamp *);
extern int	PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout);
extern int	PGTYPEStimestamp_sub_interval(timestamp * tin, interval * span, timestamp * tout);

#ifdef __cplusplus
}
#endif

#endif							/* PGTYPES_TIMESTAMP */

相关信息

greenplumn 源码目录

相关文章

greenplumn datetime 源码

greenplumn decimal 源码

greenplumn ecpg-pthread-win32 源码

greenplumn ecpg_informix 源码

greenplumn ecpgerrno 源码

greenplumn ecpglib 源码

greenplumn ecpgtype 源码

greenplumn pgtypes 源码

greenplumn pgtypes_date 源码

greenplumn pgtypes_error 源码

0  赞