loc_time.h

Go to the documentation of this file.
00001 /*
00002  * loc_time.h - some local definitions
00003  */
00004 /* $Header: /opt/proj/minix/cvsroot/src/lib/ansi/loc_time.h,v 1.1.1.1 2005/04/21 14:56:05 beng Exp $ */
00005 
00006 #define YEAR0           1900                    /* the first year */
00007 #define EPOCH_YR        1970            /* EPOCH = Jan 1 1970 00:00:00 */
00008 #define SECS_DAY        (24L * 60L * 60L)
00009 #define LEAPYEAR(year)  (!((year) % 4) && (((year) % 100) || !((year) % 400)))
00010 #define YEARSIZE(year)  (LEAPYEAR(year) ? 366 : 365)
00011 #define FIRSTSUNDAY(timp)       (((timp)->tm_yday - (timp)->tm_wday + 420) % 7)
00012 #define FIRSTDAYOF(timp)        (((timp)->tm_wday - (timp)->tm_yday + 420) % 7)
00013 #define TIME_MAX        ULONG_MAX
00014 #define ABB_LEN         3
00015 
00016 extern const int _ytab[2][12];
00017 extern const char *_days[];
00018 extern const char *_months[];
00019 
00020 void _tzset(void);
00021 unsigned _dstget(struct tm *timep);
00022 
00023 extern long _timezone;
00024 extern long _dst_off;
00025 extern int _daylight;
00026 extern char *_tzname[2];

Generated on Fri Apr 14 22:57:25 2006 for minix by  doxygen 1.4.6