diff options
| author | Bruce Momjian | 2011-03-12 14:31:18 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2011-03-12 14:35:56 +0000 |
| commit | 3a3f39fdc00c6caa41d795475189ac844403b770 (patch) | |
| tree | 2cee74a6ad8f09bec94434ce24ff0c30d154b662 /src/include/utils | |
| parent | 3d9f7ec1ffde399accda096da4df46b178e8b960 (diff) | |
Use macros for time-based constants, rather than constants.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/timestamp.h | 2 |
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 |
