Lines Matching refs:ndays
54 /* The last day of Julian calendar, in internal and ndays representation */
69 jdate(int ndays, date *dt)
77 * year which does not begin after ndays.
79 idt.y = ndays / 365;
82 while ((r = ndaysji(&idt)) > ndays)
90 r = ndays - r;
133 gdate(int ndays, date *dt)
142 * starting after ndays.
144 idt.y = ndays / 365;
147 while ((r = ndaysgi(&idt)) > ndays)
151 * Set ndays to the number of days left and compute by linear
152 * search the greatest month which does not start after ndays. We
160 ndays = ndays - r;
166 for (idt.m = 11; montht[idt.m] > ndays; idt.m--)
169 idt.d = ndays - montht[idt.m]; /* the rest is the day in month */