]> granicus.if.org Git - postgresql/commit
Add datetime macros for constants, for clarity:
authorBruce Momjian <bruce@momjian.us>
Mon, 23 May 2005 18:56:55 +0000 (18:56 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 23 May 2005 18:56:55 +0000 (18:56 +0000)
commit5ebaae801c278b1801f54fcce5a651b3a7ce9af1
tree42006625feb53158b3f68521a71226ac3c7c4a8b
parent33d0d4ce96e51b633488b9a96fc7a8a4c8b551c2
Add datetime macros for constants, for clarity:

#define SECS_PER_DAY  86400
#define USECS_PER_DAY INT64CONST(86400000000)
#define USECS_PER_HOUR    INT64CONST(3600000000)
#define USECS_PER_MINUTE INT64CONST(60000000)
#define USECS_PER_SEC INT64CONST(1000000)
src/backend/utils/adt/date.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/timestamp.c
src/include/utils/timestamp.h
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/interval.c
src/interfaces/ecpg/pgtypeslib/timestamp.c