diff options
author | davygrvy <davygrvy@noemail.net> | 2003-08-27 19:50:07 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@noemail.net> | 2003-08-27 19:50:07 (GMT) |
commit | cf0d630995ded3ab69b8c7063af6f87ce6a11630 (patch) | |
tree | a21c7b3b6cbb4cf102ea61eba61959e4dd0a5648 /win | |
parent | 6f77bd7f37a76331a7b1b31fb78363328581ef31 (diff) | |
download | tcl-cf0d630995ded3ab69b8c7063af6f87ce6a11630.zip tcl-cf0d630995ded3ab69b8c7063af6f87ce6a11630.tar.gz tcl-cf0d630995ded3ab69b8c7063af6f87ce6a11630.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.
FossilOrigin-Name: e915910e7e72270697f9bf8a669a4e0a84e4b049
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinTime.c | 12 |
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; |