Lines Matching defs:year
159 static int yearistype(int year, const char * type);
1109 int year, month, day;
1119 if (sscanf(cp, scheck(cp, "%d"), &year) != 1) {
1123 error(_("invalid leaping year"));
1126 if (!leapseen || leapmaxyear < year)
1127 leapmaxyear = year;
1128 if (!leapseen || leapminyear > year)
1129 leapminyear = year;
1132 while (j != year) {
1133 if (year > j) {
1149 i = len_months[isleap(year)][j];
1155 day <= 0 || day > len_months[isleap(year)][month]) {
1297 error(_("invalid starting year"));
1317 error(_("invalid ending year"));
1321 error(_("starting year greater than ending year"));
1328 error(_("typed single year"));
1935 ** Horrid special case: if year is 2037,
1936 ** presume this is a zone handled on a year-by-year basis;
1983 register int year;
2085 } else for (year = min_year; year <= max_year; ++year) {
2086 if (useuntil && year > zp->z_untilrule.r_hiyear)
2089 ** Mark which rules to do in the current year.
2090 ** For those to do, calculate rpytime(rp, year);
2096 rp->r_todo = year >= rp->r_loyear &&
2097 year <= rp->r_hiyear &&
2098 yearistype(year, rp->r_yrtype);
2100 rp->r_temp = rpytime(rp, year);
2124 ** that takes effect earliest in the year.
2147 break; /* go on to next year */
2358 yearistype(year, type)
2359 const int year;
2368 (void) sprintf(buf, "%s %d %s", yitcommand, year, type);
2521 ** Given a rule, and a year, compute the date - in seconds since January 1,
2522 ** 1970, 00:00 LOCAL time - in that year that the rule refers to.
2561 error(_("use of 2/29 in non leap-year"));