1989-06-12 15:22:14 +00:00
|
|
|
/*
|
|
|
|
* loc_incl.h - some local definitions
|
|
|
|
*/
|
|
|
|
/* $Header$ */
|
|
|
|
|
1989-12-18 15:33:48 +00:00
|
|
|
#define YEAR0 1900 /* the first year */
|
|
|
|
#define EPOCH_YR 1970 /* EPOCH = Jan 1 1970 00:00:00 */
|
1989-06-12 15:22:14 +00:00
|
|
|
#define SECS_DAY (24L * 60L * 60L)
|
|
|
|
#define LEAPYEAR(year) (!((year) % 4) && (((year) % 100) || !((year) % 400)))
|
|
|
|
#define YEARSIZE(year) (LEAPYEAR(year) ? 366 : 365)
|
1989-12-18 15:33:48 +00:00
|
|
|
#define FIRSTSUNDAY(timp) (((timp)->tm_yday - (timp)->tm_wday + 420) % 7)
|
|
|
|
#define FIRSTDAYOF(timp) (((timp)->tm_wday - (timp)->tm_yday + 420) % 7)
|
1989-06-12 15:22:14 +00:00
|
|
|
#define TIME_MAX ULONG_MAX
|
|
|
|
#define ABB_LEN 3
|
|
|
|
|
|
|
|
extern const int _ytab[2][12];
|
|
|
|
extern const char *_days[];
|
|
|
|
extern const char *_months[];
|
|
|
|
|
1989-12-18 15:33:48 +00:00
|
|
|
void _tzset(void);
|
1989-06-12 15:22:14 +00:00
|
|
|
unsigned _dstget(struct tm *timep);
|
1989-12-18 15:33:48 +00:00
|
|
|
|
|
|
|
extern long _timezone;
|
|
|
|
extern long _dst_off;
|
|
|
|
extern int _daylight;
|
|
|
|
extern char *_tzname[2];
|