own time.h
This commit is contained in:
parent
7e091602a7
commit
f9b38448fd
4 changed files with 0 additions and 16 deletions
|
@ -1,9 +1,5 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
#ifdef __BSD4_2
|
|
||||||
#include <sys/time.h>
|
|
||||||
#else
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DATE_STR "??? ??? ?? ??:??:?? ????\n"
|
#define DATE_STR "??? ??? ?? ??:??:?? ????\n"
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
#ifdef __BSD4_2
|
|
||||||
#include <sys/time.h>
|
|
||||||
#else
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
extern struct tm *localtime();
|
extern struct tm *localtime();
|
||||||
extern char *asctime();
|
extern char *asctime();
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
#ifdef __BSD4_2
|
|
||||||
#include <sys/time.h>
|
|
||||||
#else
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
static int monthsize[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
|
static int monthsize[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
#ifdef __BSD4_2
|
|
||||||
#include <sys/time.h>
|
|
||||||
#else
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LEAPYEAR(year) (!((year) % 4) && (((year) % 100) || !((year) % 400)))
|
#define LEAPYEAR(year) (!((year) % 4) && (((year) % 100) || !((year) % 400)))
|
||||||
#define YEARSIZE(year) (LEAPYEAR(year) ? 366 : 365)
|
#define YEARSIZE(year) (LEAPYEAR(year) ? 366 : 365)
|
||||||
|
|
Loading…
Add table
Reference in a new issue