diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-17 15:06:50 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-17 15:06:50 -0500 |
commit | f901bb50e33ad95593bb68f7b3b55eb2e47607dc (patch) | |
tree | 59f57745a6e30adb0d41485cbc857b1f0d5977e6 /src/include/utils/datetime.h | |
parent | 69c8fbac201652282e18b0e2e301d4ada991fbde (diff) | |
download | postgresql-f901bb50e33ad95593bb68f7b3b55eb2e47607dc.tar.gz postgresql-f901bb50e33ad95593bb68f7b3b55eb2e47607dc.zip |
Add make_date() and make_time() functions.
Pavel Stehule, reviewed by Jeevan Chalke and Atri Sharma
Diffstat (limited to 'src/include/utils/datetime.h')
-rw-r--r-- | src/include/utils/datetime.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |