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
74242544
Commit
74242544
authored
27 years ago
by
Thomas G. Lockhart
Browse files
Options
Downloads
Patches
Plain Diff
Drop internal routines for formatting time output. Use default formatter.
Add timezone info to abstime2tm().
parent
1f4f4534
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/utils/nabstime.h
+2
-11
2 additions, 11 deletions
src/include/utils/nabstime.h
with
2 additions
and
11 deletions
src/include/utils/nabstime.h
+
2
−
11
View file @
74242544
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nabstime.h,v 1.
7
1997/0
4/02 18:32:39 scrappy
Exp $
* $Id: nabstime.h,v 1.
8
1997/0
6/23 14:58:51 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -93,12 +93,6 @@ extern AbsoluteTime GetCurrentAbsoluteTime(void);
#define getSystemTime() \
((time_t) (time(0l)))
#define SECS(n) ((time_t)(n))
#define MINS(n) ((time_t)(n) * SECS(60))
#define HOURS(n) ((time_t)(n) * MINS(60))
/* 3600 secs */
#define DAYS(n) ((time_t)(n) * HOURS(24))
/* 86400 secs */
/* months and years are not constant length, must be specially dealt with */
/*
* nabstime.c prototypes
...
...
@@ -121,9 +115,6 @@ extern bool AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2);
extern
bool
AbsoluteTimeIsAfter
(
AbsoluteTime
time1
,
AbsoluteTime
time2
);
extern
AbsoluteTime
tm2abstime
(
struct
tm
*
tm
,
int
tz
);
extern
void
abstime2tm
(
AbsoluteTime
time
,
int
*
tzp
,
struct
tm
*
tm
);
extern
AbsoluteTime
dateconv
(
struct
tm
*
tm
,
int
zone
);
extern
time_t
qmktime
(
struct
tm
*
tp
);
extern
void
abstime2tm
(
AbsoluteTime
time
,
int
*
tzp
,
struct
tm
*
tm
,
char
*
tzn
);
#endif
/* NABSTIME_H */
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