summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorBruce Momjian2011-03-12 14:31:18 +0000
committerBruce Momjian2011-03-12 14:35:56 +0000
commit3a3f39fdc00c6caa41d795475189ac844403b770 (patch)
tree2cee74a6ad8f09bec94434ce24ff0c30d154b662 /src/include/utils
parent3d9f7ec1ffde399accda096da4df46b178e8b960 (diff)
Use macros for time-based constants, rather than constants.
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/timestamp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h
index 9e51b58dde..e14285f8a4 100644
--- a/src/include/utils/timestamp.h
+++ b/src/include/utils/timestamp.h
@@ -81,6 +81,8 @@ typedef struct
*/
#define DAYS_PER_MONTH 30 /* assumes exactly 30 days per month */
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
+#define MINS_PER_HOUR 60 /* assume no daylight savings time changes */
+#define SECS_PER_MINUTE 60 /* assume no daylight savings time changes */
/*
* This doesn't adjust for uneven daylight savings time intervals or leap