#ifndef _ECPG_DATETIME_H
#define _ECPG_DATETIME_H

#include <pgtypes_timestamp.h>
#include <pgtypes_interval.h>

typedef timestamp dtime_t;
typedef interval intrvl_t;

extern void dtcurrent(dtime_t *);
extern int	dtcvasc(char *, dtime_t *);
extern int	dtsub(dtime_t *, dtime_t *, intrvl_t *);
extern int	dttoasc(dtime_t *, char *);
extern int	dttofmtasc(dtime_t *, char *, int, char *);
extern int	intoasc(intrvl_t *, char *);
extern int	dtcvfmtasc(char *, char *, dtime_t *);

#endif /* ndef _ECPG_DATETIME_H */
