Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit680ef08

Browse files
author
Thomas G. Lockhart
committed
Add DTK_DOY to help decode day of year fields.
1 parent45a8b66 commit680ef08

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
typedefdoubleDateTime;
@@ -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
#defineDTK_NUMBER0
@@ -164,6 +166,7 @@ typedef struct
164166
#defineDTK_MILLISEC29
165167
#defineDTK_MICROSEC30
166168
#defineDTK_DOW31
169+
#defineDTK_DOY32
167170

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp