tclUnixTime.c File Reference

#include "tclInt.h"
#include <locale.h>

Go to the source code of this file.

Data Structures

struct  ThreadSpecificData

Defines

#define TM_YEAR_BASE   1900
#define IsLeapYear(x)   (((x)%4 == 0) && ((x)%100 != 0 || (x)%400 == 0))
#define TCL_GOT_TIMEZONE

Functions

unsigned long TclpGetSeconds (void)
unsigned long TclpGetClicks (void)
int TclpGetTimeZone (unsigned long currentTime)
void Tcl_GetTime (Tcl_Time *timePtr)
tm * TclpGetDate (CONST time_t *time, int useGMT)
tm * TclpGmtime (CONST time_t *timePtr)
tm * TclpGmtime_unix (CONST time_t *timePtr)
tm * TclpLocaltime (CONST time_t *timePtr)
tm * TclpLocaltime_unix (CONST time_t *timePtr)
void Tcl_SetTimeProc (Tcl_GetTimeProc *getProc, Tcl_ScaleTimeProc *scaleProc, ClientData clientData)
void Tcl_QueryTimeProc (Tcl_GetTimeProc **getProc, Tcl_ScaleTimeProc **scaleProc, ClientData *clientData)

Variables

Tcl_GetTimeProc * tclGetTimeProcPtr = NativeGetTime
Tcl_ScaleTimeProc * tclScaleTimeProcPtr = NativeScaleTime
ClientData tclTimeClientData = NULL


Define Documentation

#define IsLeapYear (  )     (((x)%4 == 0) && ((x)%100 != 0 || (x)%400 == 0))

Definition at line 22 of file tclUnixTime.c.

#define TCL_GOT_TIMEZONE

#define TM_YEAR_BASE   1900

Definition at line 21 of file tclUnixTime.c.


Function Documentation

void Tcl_QueryTimeProc ( Tcl_GetTimeProc **  getProc,
Tcl_ScaleTimeProc **  scaleProc,
ClientData *  clientData 
)

Definition at line 542 of file tclUnixTime.c.

References tclGetTimeProcPtr, tclScaleTimeProcPtr, and tclTimeClientData.

void Tcl_SetTimeProc ( Tcl_GetTimeProc *  getProc,
Tcl_ScaleTimeProc *  scaleProc,
ClientData  clientData 
)

Definition at line 515 of file tclUnixTime.c.

References tclGetTimeProcPtr, tclScaleTimeProcPtr, and tclTimeClientData.

unsigned long TclpGetClicks ( void   ) 

Definition at line 109 of file tclUnixTime.c.

References tclGetTimeProcPtr, and tclTimeClientData.

Referenced by ClockClicksObjCmd().

struct tm* TclpGetDate ( CONST time_t *  time,
int  useGMT 
)

Definition at line 388 of file tclUnixTime.c.

References TclpGmtime(), and TclpLocaltime().

unsigned long TclpGetSeconds ( void   ) 

Definition at line 84 of file tclUnixTime.c.

int TclpGetTimeZone ( unsigned long  currentTime  ) 

Definition at line 245 of file tclUnixTime.c.

References TclpLocaltime().

struct tm* TclpGmtime ( CONST time_t *  timePtr  ) 

struct tm* TclpGmtime_unix ( CONST time_t *  timePtr  ) 

Definition at line 442 of file tclUnixTime.c.

References TclpGmtime().

struct tm* TclpLocaltime ( CONST time_t *  timePtr  ) 

struct tm* TclpLocaltime_unix ( CONST time_t *  timePtr  ) 

Definition at line 491 of file tclUnixTime.c.

References TclpLocaltime().


Variable Documentation

Tcl_GetTimeProc* tclGetTimeProcPtr = NativeGetTime

Definition at line 62 of file tclUnixTime.c.

Tcl_ScaleTimeProc* tclScaleTimeProcPtr = NativeScaleTime

Definition at line 63 of file tclUnixTime.c.

ClientData tclTimeClientData = NULL

Definition at line 64 of file tclUnixTime.c.



Generated on Wed Mar 12 12:18:38 2008 by  doxygen 1.5.1