summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-07-21 15:16:30 +0000
committerBruce Momjian <bruce@momjian.us>2005-07-21 15:16:30 +0000
commita0407f508a8d627dcf85557f1ada476117627875 (patch)
tree18e14b07303628b63b111f3d433fb7c9c5400e90 /src/interfaces
parent0e5c62d0656223f8c9fdabf85d568e4e95e685c0 (diff)
Add comment about void* use in MemSet.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h
index 14fbd3c9878..01b44fb27ac 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt.h
+++ b/src/interfaces/ecpg/pgtypeslib/dt.h
@@ -219,6 +219,12 @@ do { \
/* in both timestamp.h and ecpg/dt.h */
#define DAYS_PER_YEAR 365.25 /* assumes leap year every four years */
#define MONTHS_PER_YEAR 12
+/*
+ * DAYS_PER_MONTH is very imprecise. The more accurate value is
+ * 365.25/12 = 30.4375, or '30 days 10:30:00'. Right now we only
+ * return an integral number of days, but someday perhaps we should
+ * also return a 'time' value to be used as well.
+ */
#define DAYS_PER_MONTH 30 /* assumes exactly 30 days per month */
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */