G:/ScriptBasic/source/mygmtime.c File Reference

#include <time.h>
#include "mygmtime.h"

Go to the source code of this file.

Defines

#define ChkAdd(dest, src1, src2)
#define ChkMul(dest, src1, src2)   ( src1 ? (dest/src1 != src2) : 0 )

Functions

long mygmktime (struct tm *tb)
tm * mygmtime (time_t *timp, struct tm *ptb)
static long TimeDifference (void)

Variables

static int _lpdays [] = { -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }
static int _days [] = { -1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364 }


Define Documentation

#define ChkAdd dest,
src1,
src2   ) 
 

Value:

( ((src1 >= 0L) && (src2 >= 0L) \
    && (dest < 0L)) || ((src1 < 0L) && (src2 < 0L) && (dest >= 0L)) )

Definition at line 46 of file mygmtime.c.

#define ChkMul dest,
src1,
src2   )     ( src1 ? (dest/src1 != src2) : 0 )
 

Definition at line 52 of file mygmtime.c.


Function Documentation

long mygmktime struct tm *  tb  ) 
 

Definition at line 55 of file mygmtime.c.

References _BASE_YEAR, _days, _LEAP_YEAR_ADJUST, _MAX_YEAR, ChkAdd, ChkMul, mygmtime(), and NULL.

struct tm* mygmtime time_t *  timp,
struct tm *  ptb
 

Definition at line 154 of file mygmtime.c.

References _DAY_SEC, _FOUR_YEAR_SEC, _YEAR_SEC, and NULL.

Referenced by log_printf(), log_thread(), mygmktime(), and TimeDifference().

static long TimeDifference void   )  [static]
 

Definition at line 243 of file mygmtime.c.

References lTime, mygmtime(), NULL, and pGmTime.


Variable Documentation

int _days[] = { -1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364 } [static]
 

Definition at line 42 of file mygmtime.c.

int _lpdays[] = { -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 } [static]
 

Definition at line 41 of file mygmtime.c.


Generated on Sun Mar 12 23:56:37 2006 for ScriptBasic by  doxygen 1.4.6-NO