mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-11 19:20:40 +08:00
More comment update of time macros.
This commit is contained in:
parent
e6b72d6af6
commit
e9c44bd382
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.51 2005/07/21 18:06:13 momjian Exp $
|
* $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.52 2005/07/21 20:37:21 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -73,8 +73,8 @@ typedef struct
|
|||||||
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
|
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This doesn't adjust for uneven daylight savings time intervals, nor
|
* This doesn't adjust for uneven daylight savings time intervals or leap
|
||||||
* leap seconds.
|
* seconds, and it crudely estimates leap years.
|
||||||
*/
|
*/
|
||||||
#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
|
#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
|
||||||
#define SECS_PER_DAY 86400
|
#define SECS_PER_DAY 86400
|
||||||
|
@ -229,8 +229,8 @@ do { \
|
|||||||
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
|
#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This doesn't adjust for uneven daylight savings time intervals, nor
|
* This doesn't adjust for uneven daylight savings time intervals or leap
|
||||||
* leap seconds.
|
* seconds, and it crudely estimates leap years.
|
||||||
*/
|
*/
|
||||||
#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
|
#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */
|
||||||
#define SECS_PER_DAY 86400
|
#define SECS_PER_DAY 86400
|
||||||
|
Loading…
Reference in New Issue
Block a user