Searched refs:leap (Results 1 - 5 of 5) sorted by relevance

/haiku-fatelf/src/bin/zip/
H A Dmktime.c157 /* Nonzero if `y' is a leap year, else zero. */
158 #define leap(y) (((y) % 4 == 0 && (y) % 100 != 0) || (y) % 400 == 0) macro
160 /* Number of leap years from 1970 to `y' (not including `y' itself). */
163 /* Additional leapday in February of leap years. */
164 #define leapday(m, y) ((m) == 1 && leap (y))
226 days += ydays[months] + (months > 1 && leap (years));
243 (TM_MON_MAX > 1 && leap (TM_YEAR_MAX)) ||
245 (TM_MON_MAX > 1 && leap (TM_YEAR_MAX)) &&
/haiku-fatelf/src/bin/unzip/
H A Dtimezone.c26 * reasons. Support for timezone files and leap seconds was removed.
75 #define YDAYS(month, year) yr_days[leap(year)][month]
77 /* Nonzero if `y' is a leap year, else zero. */
78 #define leap(y) (((y) % 4 == 0 && (y) % 100 != 0) || (y) % 400 == 0) macro
80 /* Number of leap years from EPOCH_YEAR to `y' (not including `y' itself). */
88 ((m) == 1 && leap(y)))
139 leapyear = leap(year);
144 ** Jn - Julian day, 1 == January 1, 60 == March 1 even in leap
146 ** In non-leap years, or if the day number is 59 or less, just
253 janfirst += year_lengths[leap(yea
[all...]
H A Dfileio.c1660 int leap;
1705 /* leap = # of leap yrs from YRBASE up to but not including current year */
1706 leap = ((yr + YRBASE - 1) / 4); /* leap year base factor */
1709 days = (yr * 365) + (leap - 492) + ydays[mo];
1711 /* if year is a leap year and month is after February, add another day */
/haiku-fatelf/src/bin/
H A Dcal.c90 /* leap year -- account for gregorian reformation in 1752 */
99 /* number of leap years between year 1 and this year, not inclusive */
326 int i, leap; local
328 leap = leap_year(year);
330 day += days_in_month[leap][i];
/haiku-fatelf/src/bin/patch/
H A Dmaketime.c172 if T is local time, and if a leap second happens during this minute.
175 switched to UTC in May 1972; the first leap second was in June 1972. */
223 POSIX 1003.1 doesn't allow leap seconds, but some implementations
237 combinations of leap seconds, time zone rule changes, and solar time.
263 or tm may have members out of range (e.g. bad leap seconds). */
275 /* If gt is a leap second, try gt+1; if it is one greater than
276 a leap second, try gt-1; otherwise, it doesn't matter.
384 so that leap seconds are handled properly. */
409 int leap; local
425 int days_per_year = 365 + (leap
[all...]

Completed in 61 milliseconds