1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +03:00

Use macros for time-based constants, rather than constants.

This commit is contained in:
Bruce Momjian
2011-03-12 09:31:18 -05:00
parent 3d9f7ec1ff
commit 3a3f39fdc0
6 changed files with 46 additions and 41 deletions

View File

@@ -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