Lines Matching refs:days
557 int days, rem, y, wday, yday; in unmktime() local
560 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime()
564 --days; in unmktime()
568 ++days; in unmktime()
575 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime()
584 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
587 long int yg = y + days / 365 - (days % 365 < 0); in unmktime()
590 days -= (yg - y) * 365 + in unmktime()
595 yday = days; /* day in the year. Not currently used. */ in unmktime()
597 for (y = 11; days < (long int) ip[y]; --y) in unmktime()
599 days -= ip[y]; in unmktime()
601 *dayp = days + 1; /* day in the month */ in unmktime()