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
aa0f6e8d
Commit
aa0f6e8d
authored
Jul 21, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment marking non-exact time conversion macros.
parent
9dbd00b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
src/include/utils/timestamp.h
src/include/utils/timestamp.h
+5
-6
src/interfaces/ecpg/pgtypeslib/dt.h
src/interfaces/ecpg/pgtypeslib/dt.h
+4
-5
No files found.
src/include/utils/timestamp.h
View file @
aa0f6e8d
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.4
8 2005/07/21 03:56:24
momjian Exp $
* $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.4
9 2005/07/21 04:48:42
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -61,13 +61,12 @@ typedef struct
#define MAX_INTERVAL_PRECISION 6
/* in both timestamp.h and ecpg/dt.h */
#define DAYS_PER_YEAR 365.25
#define DAYS_PER_YEAR 365.25
/* assumes leap year every four years */
#define MONTHS_PER_YEAR 12
/* average days per month */
#define DAYS_PER_MONTH 30
#define HOURS_PER_DAY 24
#define DAYS_PER_MONTH 30
/* assumes exactly 30 days per month */
#define HOURS_PER_DAY 24
/* assume no daylight savings time changes */
#define SECS_PER_DAY 86400
#define SECS_PER_DAY 86400
/* assumes no leap second */
#define SECS_PER_HOUR 3600
#define SECS_PER_MINUTE 60
...
...
src/interfaces/ecpg/pgtypeslib/dt.h
View file @
aa0f6e8d
...
...
@@ -217,13 +217,12 @@ do { \
#endif
/* in both timestamp.h and ecpg/dt.h */
#define DAYS_PER_YEAR 365.25
#define DAYS_PER_YEAR 365.25
/* assumes leap year every four years */
#define MONTHS_PER_YEAR 12
/* average days per month */
#define DAYS_PER_MONTH 30
#define HOURS_PER_DAY 24
#define DAYS_PER_MONTH 30
/* assumes exactly 30 days per month */
#define HOURS_PER_DAY 24
/* assume no daylight savings time changes */
#define SECS_PER_DAY 86400
#define SECS_PER_DAY 86400
/* assumes no leap second */
#define SECS_PER_HOUR 3600
#define SECS_PER_MINUTE 60
...
...
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