Lines Matching defs:nyrs
403 uint32_t lyrs, nyrs, dummy;
423 nyrs = sec / SEC_PER_YEAR;
425 lyrs = (nyrs + 1) / 4;
427 lyrs = (nyrs + 2) / 4;
429 if (nyrs != ((sec - (lyrs * SEC_PER_DAY)) / SEC_PER_YEAR)) {
430 nyrs--;
432 lyrs = (nyrs + 1) / 4;
434 lyrs = (nyrs + 2) / 4;
437 sec -= nyrs * SEC_PER_YEAR + lyrs * SEC_PER_DAY;
440 nyrs = 1970 - nyrs;
442 nyrs --;
443 if ((nyrs % 4) == 0) {
450 nyrs += 1970;
452 cp = (nyrs % 4) ? cum_sec : cum_sec_leap;
460 dtime->ts_year = SWAP_16(nyrs);