summaryrefslogtreecommitdiff
path: root/src/include/utils/datetime.h
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>2001-12-29 18:31:48 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>2001-12-29 18:31:48 +0000
commitb5e23db43881af39d17aed5df2e90f9d4a352c26 (patch)
treeecba68021430a76ae02cd6a0ec819c7f9dcf3f0f /src/include/utils/datetime.h
parent3e87bfc1f1fa4f32ca8a417d0b0064a5d2700d35 (diff)
Rework the date/time parsing to tighten up some cases and to enable other
cases which should have worked but did not. Now supports julian day (J2452271), ISO time labels (T040506) and various combinations of spaces and run-togethers of dates, times, and time zones. All regression tests pass, and I have more tests to add after the 7.2 release (don't want to require changes to the ancillary horology result files until after then).
Diffstat (limited to 'src/include/utils/datetime.h')
-rw-r--r--src/include/utils/datetime.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h
index 980c21eff6a..b0100d40568 100644
--- a/src/include/utils/datetime.h
+++ b/src/include/utils/datetime.h
@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: datetime.h,v 1.26 2001/11/05 17:46:36 momjian Exp $
+ * $Id: datetime.h,v 1.27 2001/12/29 18:31:48 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -108,6 +108,9 @@
#define AGO 17
#define ABS_BEFORE 18
#define ABS_AFTER 19
+/* generic fields to help with parsing */
+#define DATE 20
+#define TIME 21
/* reserved for unrecognized string values */
#define UNKNOWN_FIELD 31
@@ -163,9 +166,6 @@
#define DTK_TZ_HOUR 34
#define DTK_TZ_MINUTE 35
-#define DTK_ISO_DATE 36
-#define DTK_ISO_TIME 37
-
/*
* Bit mask definitions for time parsing.