Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
680ef085
Commit
680ef085
authored
Nov 17, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add DTK_DOY to help decode day of year fields.
parent
45a8b666
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/include/utils/dt.h
src/include/utils/dt.h
+6
-3
No files found.
src/include/utils/dt.h
View file @
680ef085
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: dt.h,v 1.2
1 1997/09/08 21:54:55 momjian
Exp $
* $Id: dt.h,v 1.2
2 1997/11/17 16:39:58 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
* relative to an absolute time.
* relative to an absolute time.
*
*
* Note that Postgres uses "time interval" to mean a bounded interval,
* Note that Postgres uses "time interval" to mean a bounded interval,
* consisting of a beginning and ending time, not a time span - t
gl
97/03/20
* consisting of a beginning and ending time, not a time span - t
homas
97/03/20
*/
*/
typedef
double
DateTime
;
typedef
double
DateTime
;
...
@@ -126,7 +126,9 @@ typedef struct
...
@@ -126,7 +126,9 @@ typedef struct
* At the moment, that means keep them within [-127,127].
* At the moment, that means keep them within [-127,127].
* These are also used for bit masks in DecodeDateDelta()
* These are also used for bit masks in DecodeDateDelta()
* so actually restrict them to within [0,31] for now.
* 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
#define DTK_NUMBER 0
...
@@ -164,6 +166,7 @@ typedef struct
...
@@ -164,6 +166,7 @@ typedef struct
#define DTK_MILLISEC 29
#define DTK_MILLISEC 29
#define DTK_MICROSEC 30
#define DTK_MICROSEC 30
#define DTK_DOW 31
#define DTK_DOW 31
#define DTK_DOY 32
/*
/*
* Bit mask definitions for time parsing.
* Bit mask definitions for time parsing.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment