Lines Matching refs:ndays
52 /* The last day of Julian calendar, in internal and ndays representation */
67 jdate(int ndays, date *dt)
75 * year which does not begin after ndays.
77 idt.y = ndays / 365;
80 while ((r = ndaysji(&idt)) > ndays)
88 r = ndays - r;
131 gdate(int ndays, date *dt)
140 * starting after ndays.
142 idt.y = ndays / 365;
145 while ((r = ndaysgi(&idt)) > ndays)
149 * Set ndays to the number of days left and compute by linear
150 * search the greatest month which does not start after ndays. We
158 ndays = ndays - r;
164 for (idt.m = 11; montht[idt.m] > ndays; idt.m--)
167 idt.d = ndays - montht[idt.m]; /* the rest is the day in month */