source: trunk/minix/lib/ansi/loc_time.h@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 837 bytes
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
16extern const int _ytab[2][12];
17extern const char *_days[];
18extern const char *_months[];
19
20void _tzset(void);
21unsigned _dstget(struct tm *timep);
22
23extern long _timezone;
24extern long _dst_off;
25extern int _daylight;
26extern char *_tzname[2];
Note: See TracBrowser for help on using the repository browser.