aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/date.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/date.h')
-rw-r--r--src/include/utils/date.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/date.h b/src/include/utils/date.h
index 274959231b4..e17cd49602e 100644
--- a/src/include/utils/date.h
+++ b/src/include/utils/date.h
@@ -17,7 +17,7 @@
#include <math.h>
#include "fmgr.h"
-
+#include "datatype/timestamp.h"
typedef int32 DateADT;
@@ -73,5 +73,7 @@ extern void EncodeSpecialDate(DateADT dt, char *str);
extern DateADT GetSQLCurrentDate(void);
extern TimeTzADT *GetSQLCurrentTime(int32 typmod);
extern TimeADT GetSQLLocalTime(int32 typmod);
+extern int time2tm(TimeADT time, struct pg_tm *tm, fsec_t *fsec);
+extern int timetz2tm(TimeTzADT *time, struct pg_tm *tm, fsec_t *fsec, int *tzp);
#endif /* DATE_H */