summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-07-21 20:37:21 +0000
committerBruce Momjian <bruce@momjian.us>2005-07-21 20:37:21 +0000
commite9c44bd38226b9de03ae55e77168b77dc767a9a4 (patch)
tree81773a7308d25b4b94798391fc7378e99737a446 /src
parente6b72d6af6fbe94e90019ca374199472bb1958a4 (diff)
More comment update of time macros.
Diffstat (limited to 'src')
-rw-r--r--src/include/utils/timestamp.h6
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h
index 3e2ac94a215..88161f1cce0 100644
--- a/src/include/utils/timestamp.h
+++ b/src/include/utils/timestamp.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.51 2005/07/21 18:06:13 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.52 2005/07/21 20:37:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -73,8 +73,8 @@ typedef struct
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
/*
- * This doesn't adjust for uneven daylight savings time intervals, nor
- * leap seconds.
+ * This doesn't adjust for uneven daylight savings time intervals or leap
+ * seconds, and it crudely estimates leap years.
*/
#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
#define SECS_PER_DAY 86400
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h
index 008ac3b0a31..0e1da777485 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt.h
+++ b/src/interfaces/ecpg/pgtypeslib/dt.h
@@ -229,8 +229,8 @@ do { \
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
/*
- * This doesn't adjust for uneven daylight savings time intervals, nor
- * leap seconds.
+ * This doesn't adjust for uneven daylight savings time intervals or leap
+ * seconds, and it crudely estimates leap years.
*/
#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
#define SECS_PER_DAY 86400