diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-11-17 16:39:58 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-11-17 16:39:58 +0000 |
commit | 680ef08511bc8fe212418b14f1a2176e0b57b473 (patch) | |
tree | 63e60f8f9b10675f0cffce892a3388de6f54c7fd /src | |
parent | 45a8b666c0ada584cd18ca326a79d8df70e1ff4a (diff) | |
download | postgresql-680ef08511bc8fe212418b14f1a2176e0b57b473.tar.gz postgresql-680ef08511bc8fe212418b14f1a2176e0b57b473.zip |
Add DTK_DOY to help decode day of year fields.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/utils/dt.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/utils/dt.h b/src/include/utils/dt.h index 64d270ed74b..4cf0e6ce133 100644 --- a/src/include/utils/dt.h +++ b/src/include/utils/dt.h @@ -8,7 +8,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: dt.h,v 1.21 1997/09/08 21:54:55 momjian Exp $ + * $Id: dt.h,v 1.22 1997/11/17 16:39:58 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -25,7 +25,7 @@ * relative to an absolute time. * * Note that Postgres uses "time interval" to mean a bounded interval, - * consisting of a beginning and ending time, not a time span - tgl 97/03/20 + * consisting of a beginning and ending time, not a time span - thomas 97/03/20 */ typedef double DateTime; @@ -126,7 +126,9 @@ typedef struct * At the moment, that means keep them within [-127,127]. * These are also used for bit masks in DecodeDateDelta() * so actually restrict them to within [0,31] for now. - * - tgl 97/06/19 + * - thomas 97/06/19 + * Not all of these fields are used for masks in DecodeDateDelta + * so allow some larger than 31. - thomas 1997-11-17 */ #define DTK_NUMBER 0 @@ -164,6 +166,7 @@ typedef struct #define DTK_MILLISEC 29 #define DTK_MICROSEC 30 #define DTK_DOW 31 +#define DTK_DOY 32 /* * Bit mask definitions for time parsing. |