Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
8fdd794d
Commit
8fdd794d
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
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
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/adt/nabstime.c
+6
-10
6 additions, 10 deletions
src/backend/utils/adt/nabstime.c
with
6 additions
and
10 deletions
src/backend/utils/adt/nabstime.c
+
6
−
10
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/0
3
20:4
5:36
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.7
7
2000/12/0
9
20:4
0: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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment