summaryrefslogtreecommitdiffstats
path: root/contrib/tcl/unix/tclUnixTime.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcl/unix/tclUnixTime.c')
-rw-r--r--contrib/tcl/unix/tclUnixTime.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/tcl/unix/tclUnixTime.c b/contrib/tcl/unix/tclUnixTime.c
index 6c9d5af..80328af 100644
--- a/contrib/tcl/unix/tclUnixTime.c
+++ b/contrib/tcl/unix/tclUnixTime.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.
*
- * SCCS: @(#) tclUnixTime.c 1.11 96/07/23 16:17:21
+ * SCCS: @(#) tclUnixTime.c 1.10 96/02/15 11:58:41
*/
#include "tclInt.h"
@@ -18,7 +18,7 @@
/*
*-----------------------------------------------------------------------------
*
- * TclpGetSeconds --
+ * TclGetSeconds --
*
* This procedure returns the number of seconds from the epoch. On
* most Unix systems the epoch is Midnight Jan 1, 1970 GMT.
@@ -33,7 +33,7 @@
*/
unsigned long
-TclpGetSeconds()
+TclGetSeconds()
{
return time((time_t *) NULL);
}
@@ -41,7 +41,7 @@ TclpGetSeconds()
/*
*-----------------------------------------------------------------------------
*
- * TclpGetClicks --
+ * TclGetClicks --
*
* This procedure returns a value that represents the highest resolution
* clock available on the system. There are no garantees on what the
@@ -58,7 +58,7 @@ TclpGetSeconds()
*/
unsigned long
-TclpGetClicks()
+TclGetClicks()
{
unsigned long now;
#ifdef NO_GETTOD
@@ -81,7 +81,7 @@ TclpGetClicks()
/*
*----------------------------------------------------------------------
*
- * TclpGetTimeZone --
+ * TclGetTimeZone --
*
* Determines the current timezone. The method varies wildly
* between different platform implementations, so its hidden in
@@ -97,7 +97,7 @@ TclpGetClicks()
*/
int
-TclpGetTimeZone (currentTime)
+TclGetTimeZone (currentTime)
unsigned long currentTime;
{
/*
@@ -126,7 +126,7 @@ TclpGetTimeZone (currentTime)
#if defined(HAVE_TM_GMTOFF) && !defined (TCL_GOT_TIMEZONE)
# define TCL_GOT_TIMEZONE
time_t curTime = (time_t) currentTime;
- struct tm *timeDataPtr = localtime(&currentTime);
+ struct tm *timeDataPtr = localtime(&curTime);
int timeZone;
timeZone = -(timeDataPtr->tm_gmtoff / 60);
@@ -190,7 +190,7 @@ TclpGetTimeZone (currentTime)
/*
*----------------------------------------------------------------------
*
- * TclpGetTime --
+ * TclGetTime --
*
* Gets the current system time in seconds and microseconds
* since the beginning of the epoch: 00:00 UCT, January 1, 1970.
@@ -205,7 +205,7 @@ TclpGetTimeZone (currentTime)
*/
void
-TclpGetTime(timePtr)
+TclGetTime(timePtr)
Tcl_Time *timePtr; /* Location to store time information. */
{
struct timeval tv;
OpenPOWER on IntegriCloud