Skip to content

Commit 680ef08

Browse files
author
Thomas G. Lockhart
committed
Add DTK_DOY to help decode day of year fields.
1 parent 45a8b66 commit 680ef08

File tree

1 file changed

+6
-3
lines changed
  • src/include/utils

1 file changed

+6
-3
lines changed

src/include/utils/dt.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: dt.h,v 1.21 1997/09/08 21:54:55 momjian Exp $
11+
* $Id: dt.h,v 1.22 1997/11/17 16:39:58 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -25,7 +25,7 @@
2525
* relative to an absolute time.
2626
*
2727
* Note that Postgres uses "time interval" to mean a bounded interval,
28-
* consisting of a beginning and ending time, not a time span - tgl 97/03/20
28+
* consisting of a beginning and ending time, not a time span - thomas 97/03/20
2929
*/
3030

3131
typedef double DateTime;
@@ -126,7 +126,9 @@ typedef struct
126126
* At the moment, that means keep them within [-127,127].
127127
* These are also used for bit masks in DecodeDateDelta()
128128
* so actually restrict them to within [0,31] for now.
129-
* - tgl 97/06/19
129+
* - thomas 97/06/19
130+
* Not all of these fields are used for masks in DecodeDateDelta
131+
* so allow some larger than 31. - thomas 1997-11-17
130132
*/
131133

132134
#define DTK_NUMBER 0
@@ -164,6 +166,7 @@ typedef struct
164166
#define DTK_MILLISEC 29
165167
#define DTK_MICROSEC 30
166168
#define DTK_DOW 31
169+
#define DTK_DOY 32
167170

168171
/*
169172
* Bit mask definitions for time parsing.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy