|
6 | 6 | * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group |
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.52 2005/07/21 20:37:21 momjian Exp $ |
| 9 | + * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.53 2005/07/22 05:08:26 momjian Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
@@ -67,14 +67,16 @@ typedef struct |
67 | 67 | *DAYS_PER_MONTH is very imprecise. The more accurate value is |
68 | 68 | *365.2425/12 = 30.436875, or '30 days 10:29:06'. Right now we only |
69 | 69 | *return an integral number of days, but someday perhaps we should |
70 | | - *also return a 'time' value to be used as well. |
| 70 | + *also return a 'time' value to be used as well. ISO 8601 suggests |
| 71 | + *30 days. |
71 | 72 | */ |
72 | 73 | #defineDAYS_PER_MONTH30/* assumes exactly 30 days per month */ |
73 | 74 | #defineHOURS_PER_DAY24/* assume no daylight savings time changes */ |
74 | 75 |
|
75 | 76 | /* |
76 | 77 | *This doesn't adjust for uneven daylight savings time intervals or leap |
77 | | - *seconds, and it crudely estimates leap years. |
| 78 | + *seconds, and it crudely estimates leap years. A more accurate value |
| 79 | + *for days per years is 365.2422. |
78 | 80 | */ |
79 | 81 | #defineSECS_PER_YEAR(36525 * 864)/* avoid floating-point computation */ |
80 | 82 | #defineSECS_PER_DAY86400 |
|