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
8fdd794d
Commit
8fdd794d
authored
Dec 09, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix from Ryan Kirkpatrick's Alpha patches. I believe this
is the only diff not accounted for by fmgr rewrite...
parent
228c1e74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/nabstime.c
+6
-10
No files found.
src/backend/utils/adt/nabstime.c
View file @
8fdd794d
/*
/*
-------------------------------------------------------------------------
* nabstime.c
* Utilities for the built-in type "AbsoluteTime".
* Functions for the built-in type "RelativeTime".
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.7
6 2000/12/03 20:45:36
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.7
7 2000/12/09 20:40:57
tgl Exp $
*
* NOTES
*
...
...
@@ -33,12 +33,6 @@
#include "utils/builtins.h"
#if 0
static AbsoluteTime tm2abstime(struct tm * tm, int tz);
#endif
#define MIN_DAYNUM -24856
/* December 13, 1901 */
#define MAX_DAYNUM 24854
/* January 18, 2038 */
...
...
@@ -103,6 +97,7 @@ static int sec_tab[] = {
* Function prototypes -- internal to this file only
*/
static
AbsoluteTime
tm2abstime
(
struct
tm
*
tm
,
int
tz
);
static
void
reltime2tm
(
RelativeTime
time
,
struct
tm
*
tm
);
#ifdef NOT_USED
...
...
@@ -115,6 +110,7 @@ static int istinterval(char *i_string,
AbsoluteTime
*
i_start
,
AbsoluteTime
*
i_end
);
/* GetCurrentAbsoluteTime()
* Get the current system time. Set timezone parameters if not specified elsewhere.
* Define HasTZSet to allow clients to specify the default timezone.
...
...
@@ -291,8 +287,8 @@ abstime2tm(AbsoluteTime _time, int *tzp, struct tm * tm, char *tzn)
static
AbsoluteTime
tm2abstime
(
struct
tm
*
tm
,
int
tz
)
{
int
day
,
sec
;
int
day
;
AbsoluteTime
sec
;
/* validate, before going out of range on some members */
if
(
tm
->
tm_year
<
1901
||
tm
->
tm_year
>
2038
...
...
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