From f901bb50e33ad95593bb68f7b3b55eb2e47607dc Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 17 Nov 2013 15:06:50 -0500 Subject: Add make_date() and make_time() functions. Pavel Stehule, reviewed by Jeevan Chalke and Atri Sharma --- src/include/utils/datetime.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/utils/datetime.h') diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index 3cd921a0dbb..4e59e445ee5 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -294,6 +294,9 @@ extern void EncodeTimeOnly(struct pg_tm * tm, fsec_t fsec, bool print_tz, int tz extern void EncodeDateTime(struct pg_tm * tm, fsec_t fsec, bool print_tz, int tz, const char *tzn, int style, char *str); extern void EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str); +extern int ValidateDate(int fmask, bool isjulian, bool is2digits, bool bc, + struct pg_tm * tm); + extern int DecodeSpecial(int field, char *lowtoken, int *val); extern int DecodeUnits(int field, char *lowtoken, int *val); -- cgit v1.2.3