2 * loc_time.h - some local definitions
6 #define YEAR0 1900 /* the first year */
7 #define EPOCH_YR 1970 /* EPOCH = Jan 1 1970 00:00:00 */
8 #define SECS_DAY (24L * 60L * 60L)
9 #define LEAPYEAR(year) (!((year) % 4) && (((year) % 100) || !((year) % 400)))
10 #define YEARSIZE(year) (LEAPYEAR(year) ? 366 : 365)
11 #define FIRSTSUNDAY(timp) (((timp)->tm_yday - (timp)->tm_wday + 420) % 7)
12 #define FIRSTDAYOF(timp) (((timp)->tm_wday - (timp)->tm_yday + 420) % 7)
13 #define TIME_MAX ULONG_MAX
16 extern const int _ytab
[2][12];
17 extern const char *_days
[];
18 extern const char *_months
[];
21 unsigned _dstget(struct tm
*timep
);
23 extern long _timezone
;
26 extern char *_tzname
[2];