Searched refs:isleap (Results 1 - 18 of 18) sorted by relevance

/macosx-10.10.1/ICU-531.30/icuSources/tools/tzcode/
H A Dtzfile.h164 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
167 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
168 ** isleap(y) == isleap(y % 400)
170 ** isleap(a + b) == isleap((a + b) % 400)
172 ** isleap(a + b) == isleap(a % 400 + b % 400)
178 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dlocaltime.c825 leapyear = isleap(year);
1027 newfirst += year_lengths[isleap(year)] *
1478 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1522 idays += year_lengths[isleap(y)];
1524 while (idays >= year_lengths[isleap(y)]) {
1525 idays -= year_lengths[isleap(y)];
1553 ip = mon_lengths[isleap(y)];
1718 yourtm.tm_mday += year_lengths[isleap(li)];
1722 yourtm.tm_mday -= year_lengths[isleap(li)];
1727 i = mon_lengths[isleap(
[all...]
H A Dzdump.c92 #ifndef isleap
93 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
94 #endif /* !defined isleap */
100 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
652 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
661 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
H A Dzic.c1287 i = len_years[isleap(j)];
1291 i = -len_years[isleap(j)];
1302 i = len_months[isleap(year)][j];
1308 day <= 0 || day > len_months[isleap(year)][month]) {
2828 i = len_years[isleap(y)];
2832 i = -len_years[isleap(y)];
2837 i = len_months[isleap(y)][m];
2842 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) {
2879 if (i < 0 || i >= len_months[isleap(y)][m]) {
/macosx-10.10.1/libresolv-57/
H A Dns_date.c88 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
100 if (time.tm_mon > 1 && isleap(1900+time.tm_year))
107 if (isleap(1900+i))
/macosx-10.10.1/file-46/file/src/
H A Dcdf_time.c41 #define isleap(y) ((((y) % 4) == 0) && \ macro
64 days += isleap(y) + 365;
78 int sub = mdays[m] + (m == 1 && isleap(year));
96 if (m == 1 && isleap(year))
/macosx-10.10.1/Libc-1044.1.2/stdtime/FreeBSD/
H A Dtzfile.h176 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
179 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
180 ** isleap(y) == isleap(y % 400)
182 ** isleap(a + b) == isleap((a + b) % 400)
184 ** isleap(a + b) == isleap(a % 400 + b % 400)
190 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dlocaltime.c943 leapyear = isleap(year);
1130 janfirst += year_lengths[isleap(year)] *
1824 while (days < 0 || days >= (long) year_lengths[yleap = isleap(y)]) {
2025 yourtm.tm_mday += year_lengths[isleap(il)];
2030 yourtm.tm_mday += year_lengths[isleap(i)];
2036 yourtm.tm_mday -= year_lengths[isleap(il)];
2040 yourtm.tm_mday -= year_lengths[isleap(i)];
2047 i = mon_lengths[isleap(year)][yourtm.tm_mon];
2049 i = mon_lengths[isleap(yourtm.tm_year)][yourtm.tm_mon];
/macosx-10.10.1/ntp-92/libntp/
H A Dmktime.c84 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
200 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)];
203 i = mon_lengths[isleap(yourtm.tm_year +
/macosx-10.10.1/misc_cmds-33/calendar/
H A Dcalendar.h64 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
H A Dday.c146 if ( isleap(tp->tm_year + 1900) ) {
/macosx-10.10.1/gpatch-3/patch/
H A Dmaketime.c69 static int isleap P ((int));
92 isleap (y) function
111 + (m == 1 && isleap (tm->tm_year + TM_YEAR_ORIGIN)));
246 - (tm->tm_mon < 2 || !isleap (tm->tm_year + TM_YEAR_ORIGIN));
403 - (mon0 < 2 || !isleap (year0 + TM_YEAR_ORIGIN)));
425 int days_per_year = 365 + (leap = isleap (year1 + TM_YEAR_ORIGIN));
/macosx-10.10.1/system_cmds-643.1.1/zdump.tproj/
H A Dzdump.c71 #ifndef isleap
72 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
73 #endif /* !defined isleap */
193 cuttime += DAYSPERNYEAR + isleap(y);
354 result += DAYSPERNYEAR + isleap(tmy + TM_YEAR_BASE);
/macosx-10.10.1/tcl-105/tcl_ext/expect/expect/
H A Dexp_strf.c460 /* isleap --- is a year a leap year? */
464 isleap(year) function
468 isleap(int year)
558 dec31ly.tm_yday = 364 + isleap(dec31ly.tm_year + 1900);
/macosx-10.10.1/system_cmds-643.1.1/zic.tproj/
H A Dzic.c1110 i = len_years[isleap(j)];
1114 i = -len_years[isleap(j)];
1125 i = len_months[isleap(year)][j];
1131 day <= 0 || day > len_months[isleap(year)][month]) {
2064 i = len_years[isleap(y)];
2068 i = -len_years[isleap(y)];
2073 i = len_months[isleap(y)][m];
2078 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) {
2115 if (i < 0 || i >= len_months[isleap(y)][m]) {
/macosx-10.10.1/bash-94.1.2/bash-3.2/lib/sh/
H A Dstrftime.c592 /* isleap --- is a year a leap year? */
595 isleap(int year) function
678 dec31ly.tm_yday = 364 + isleap(dec31ly.tm_year + 1900);
/macosx-10.10.1/ntp-92/ntpd/
H A Drefclock_wwv.c2224 int minute, day, isleap; local
2263 isleap = up->decvec[YR].digit & 0x3;
2265 if ((day == (isleap ? 182 : 183) || day == (isleap ?
2291 if (day != (isleap ? 365 : 366))
/macosx-10.10.1/ruby-106/ruby/
H A Dstrftime.c841 /* isleap --- is a year a leap year? */
844 isleap(long year) function
855 /* for isleap() in iso8601wknum. +100 is -1900 (mod 400). */
953 dec31ly.tm_yday = 364 + isleap(dec31ly.tm_year + 1900L);

Completed in 303 milliseconds