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
a839456c
Commit
a839456c
authored
Oct 17, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move "port specific" #ifdefs out of here and into config.h
- created a HAVE_TZSET define for this purpose
parent
c3985792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/nabstime.c
+7
-13
No files found.
src/backend/utils/adt/nabstime.c
View file @
a839456c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.
4 1996/08/19 13:52:40
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.
5 1996/10/17 23:59:45
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -291,26 +291,20 @@ tryabsdate(char *fields[], int nf, struct tm *tm, int *tzp)
...
@@ -291,26 +291,20 @@ tryabsdate(char *fields[], int nf, struct tm *tm, int *tzp)
(
void
)
ftime
(
&
now
);
(
void
)
ftime
(
&
now
);
*
tzp
=
now
.
timezone
;
*
tzp
=
now
.
timezone
;
#else
/* USE_POSIX_TIME */
#else
/* USE_POSIX_TIME */
#if defined(PORTNAME_aix) || \
#ifdef HAVE_TZSET
defined(PORTNAME_hpux) || \
defined(PORTNAME_i386_solaris) || \
defined(PORTNAME_irix5) || \
defined(PORTNAME_sparc_solaris) || \
defined(PORTNAME_svr4) || \
defined(WIN32)
tzset
();
tzset
();
#ifndef
WIN
32
#ifndef
win
32
*
tzp
=
timezone
/
60
;
/* this is an X/Open-ism */
*
tzp
=
timezone
/
60
;
/* this is an X/Open-ism */
#else
#else
*
tzp
=
_timezone
/
60
;
/* this is an X/Open-ism */
*
tzp
=
_timezone
/
60
;
/* this is an X/Open-ism */
#endif
/*
WIN
32 */
#endif
/*
win
32 */
#else
/*
PORTNAME_aix || PORTNAME_hpux || ...
*/
#else
/*
!HAVE_TZSET
*/
time_t
now
=
time
((
time_t
*
)
NULL
);
time_t
now
=
time
((
time_t
*
)
NULL
);
struct
tm
*
tmnow
=
localtime
(
&
now
);
struct
tm
*
tmnow
=
localtime
(
&
now
);
*
tzp
=
-
tmnow
->
tm_gmtoff
/
60
;
/* tm_gmtoff is Sun/DEC-ism */
*
tzp
=
-
tmnow
->
tm_gmtoff
/
60
;
/* tm_gmtoff is Sun/DEC-ism */
#endif
/* PORTNAME_aix || PORTNAME_hpux || ... */
#endif
#endif
/* USE_POSIX_TIME */
#endif
tm
->
tm_mday
=
tm
->
tm_mon
=
tm
->
tm_year
=
-
1
;
/* mandatory */
tm
->
tm_mday
=
tm
->
tm_mon
=
tm
->
tm_year
=
-
1
;
/* mandatory */
tm
->
tm_hour
=
tm
->
tm_min
=
tm
->
tm_sec
=
0
;
tm
->
tm_hour
=
tm
->
tm_min
=
tm
->
tm_sec
=
0
;
...
...
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