Home
last modified time | relevance | path

Searched refs:isleap (Results 1 – 10 of 10) sorted by relevance

/dragonfly/contrib/file/src/
H A Dcdf_time.c41 #define isleap(y) ((((y) % 4) == 0) && \ macro
58 days += isleap(y) + 365; in cdf_getdays()
72 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday()
90 if (m == 1 && isleap(year)) in cdf_getmonth()
/dragonfly/stand/boot/efi/libefi/
H A Dtime.c57 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
121 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in efi_time()
129 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY); in efi_time()
/dragonfly/gnu/usr.bin/rcs/lib/
H A Dmaketime.c49 static int isleap P((int));
63 isleap(y) in isleap() function
81 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN));
216 - (tm->tm_mon<2 || ! isleap(tm->tm_year + TM_YEAR_ORIGIN));
/dragonfly/lib/libc/stdtime/
H A Dtzfile.h155 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
169 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dstrptime.c75 ((year % 100) / 4) + (isleap(year) ? 6 : 0) + 1) % 7); in first_wday_of()
619 tm->tm_yday = start_of_month[isleap(tm->tm_year + in _strptime()
643 start_of_month[isleap(tm->tm_year + in _strptime()
649 start_of_month[isleap(tm->tm_year + in _strptime()
658 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime()
H A Dlocaltime.c855 leapyear = isleap(year); in transtime()
1035 yearsecs = (year_lengths[isleap(year)] in tzparse()
1534 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) { in timesub()
1579 idays += year_lengths[isleap(y)]; in timesub()
1581 while (idays >= year_lengths[isleap(y)]) { in timesub()
1582 idays -= year_lengths[isleap(y)]; in timesub()
1610 ip = mon_lengths[isleap(y)]; in timesub()
1788 yourtm.tm_mday += year_lengths[isleap(li)]; in time2sub()
1792 yourtm.tm_mday -= year_lengths[isleap(li)]; in time2sub()
1797 i = mon_lengths[isleap(y)][yourtm.tm_mon]; in time2sub()
/dragonfly/games/pom/
H A Dpom.c57 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
76 days += isleap(1900 + cnt) ? 366 : 365; in main()
/dragonfly/usr.sbin/zic/
H A Dzdump.c78 #ifndef isleap
79 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
86 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
408 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
424 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
H A Dzic.c1054 i = len_years[isleap(j)]; in inleap()
1058 i = -len_years[isleap(j)]; in inleap()
1069 i = len_months[isleap(year)][j]; in inleap()
1075 day <= 0 || day > len_months[isleap(year)][month]) { in inleap()
2566 i = len_years[isleap(y)]; in rpytime()
2570 i = -len_years[isleap(y)]; in rpytime()
2575 i = len_months[isleap(y)][m]; in rpytime()
2580 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) { in rpytime()
2617 if (i < 0 || i >= len_months[isleap(y)][m]) { in rpytime()
/dragonfly/contrib/dialog/
H A Dcalendar.c166 isleap(int y) in isleap() function
199 result += isleap(year); in days_per_month()
216 return (isleap(year) ? 366 : 365); in days_per_year()
292 new_years_eve_dow = (new_year_dow + 364 + isleap(year)) % MAX_DAYS; in iso_week()
293 if (365 + isleap(year) - diy < MAX_DAYS in iso_week()