summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2003-08-27 19:50:07 (GMT)
committerdavygrvy <davygrvy@pobox.com>2003-08-27 19:50:07 (GMT)
commitb8856c8af163ca877ee68f3ad8203ba0ef73955d (patch)
treea21c7b3b6cbb4cf102ea61eba61959e4dd0a5648 /win/tclWinTime.c
parentd74a04ae7ce45654c550ba91bc0264abc9cd2fb5 (diff)
downloadtcl-b8856c8af163ca877ee68f3ad8203ba0ef73955d.zip
tcl-b8856c8af163ca877ee68f3ad8203ba0ef73955d.tar.gz
tcl-b8856c8af163ca877ee68f3ad8203ba0ef73955d.tar.bz2
* win/tclWinTime.c: Changed use of '_timezone' to 'timezone' as
this difference is already adjusted for in tclWinPort.h. Removed unreferenced posixEpoch file-scope global.
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 593ca55..39057cd 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinTime.c,v 1.19 2003/05/24 02:30:48 drh Exp $
+ * RCS: @(#) $Id: tclWinTime.c,v 1.20 2003/08/27 19:50:07 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -121,8 +121,6 @@ static TimeInfo timeInfo = {
0
};
-CONST static FILETIME posixEpoch = { 0xD53E8000, 0x019DB1DE };
-
/*
* Declarations for functions defined later in this file.
*/
@@ -228,7 +226,7 @@ TclpGetTimeZone (currentTime)
int timeZone;
tzset();
- timeZone = _timezone / 60;
+ timeZone = timezone / 60;
return timeZone;
}
@@ -552,7 +550,7 @@ TclpGetDate(t, useGMT)
{
const time_t *tp = (const time_t *) t;
struct tm *tmPtr;
- long time;
+ time_t time;
if (!useGMT) {
tzset();
@@ -567,7 +565,7 @@ TclpGetDate(t, useGMT)
return localtime(tp);
}
- time = *tp - _timezone;
+ time = *tp - timezone;
/*
* If we aren't near to overflowing the long, just add the bias and
@@ -588,7 +586,7 @@ TclpGetDate(t, useGMT)
* Propagate seconds overflow into minutes, hours and days.
*/
- time = tmPtr->tm_sec - _timezone;
+ time = tmPtr->tm_sec - timezone;
tmPtr->tm_sec = (int)(time % 60);
if (tmPtr->tm_sec < 0) {
tmPtr->tm_sec += 60;