]> granicus.if.org Git - postgresql/commitdiff
More comment update of time macros.
authorBruce Momjian <bruce@momjian.us>
Thu, 21 Jul 2005 20:37:21 +0000 (20:37 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 21 Jul 2005 20:37:21 +0000 (20:37 +0000)
src/include/utils/timestamp.h
src/interfaces/ecpg/pgtypeslib/dt.h

index 3e2ac94a215ae147ff97e4224ff13ee1dd808d01..88161f1cce085b6c5e04c118a81bccaf6ea71365 100644 (file)
@@ -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
index 008ac3b0a3111c3050b6b28761ffff94d1eb5214..0e1da7774853571487eeab67ab76f7568521c242 100644 (file)
@@ -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