summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorThomas G. Lockhart2001-01-18 07:22:43 +0000
committerThomas G. Lockhart2001-01-18 07:22:43 +0000
commit6acdebbd3a6e516e26b9d5ff7c51e51802e7345b (patch)
treefb6f50e911633a34618a8fdcd5c758ae93046f53 /src/include
parent6439de1752db399c862f9f440e5ec15ef5243592 (diff)
Fix up "Postgres-style" time interval representation when fields have
mixed-signs. Previous effort left way too many minus signs, and was at least as broken as the one before that :( Clean up "ISO-style" time interval representation to omit zero fields if there is at least one non-zero field. Supress some leading plus signs when not necessary for clarity. Replace every #ifdef __CYGWIN__ block with a cleaner TIMEZONE_GLOBAL macro defined in datetime.h.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/utils/datetime.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h
index 15d8ab92842..9e28436a31b 100644
--- a/src/include/utils/datetime.h
+++ b/src/include/utils/datetime.h
@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: datetime.h,v 1.15 2000/06/08 22:37:58 momjian Exp $
+ * $Id: datetime.h,v 1.16 2001/01/18 07:22:42 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -193,6 +193,11 @@ do { \
t -= rint(q * u); \
} while(0)
+#ifdef __CYGWIN__
+#define TIMEZONE_GLOBAL _timezone
+#else
+#define TIMEZONE_GLOBAL timezone
+#endif
/*
* Date/time validation