Line | |
---|
1 | /*
|
---|
2 | * loc_time.h - some local definitions
|
---|
3 | */
|
---|
4 | /* $Header: /cvsup/minix/src/lib/ansi/loc_time.h,v 1.1.1.1 2005/04/21 14:56:05 beng Exp $ */
|
---|
5 |
|
---|
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
|
---|
14 | #define ABB_LEN 3
|
---|
15 |
|
---|
16 | extern const int _ytab[2][12];
|
---|
17 | extern const char *_days[];
|
---|
18 | extern const char *_months[];
|
---|
19 |
|
---|
20 | void _tzset(void);
|
---|
21 | unsigned _dstget(struct tm *timep);
|
---|
22 |
|
---|
23 | extern long _timezone;
|
---|
24 | extern long _dst_off;
|
---|
25 | extern int _daylight;
|
---|
26 | extern char *_tzname[2];
|
---|
Note:
See
TracBrowser
for help on using the repository browser.