/original-bsd/usr.bin/cal/ |
H A D | cal.c | 138 if ((year = atoi(*argv)) < 1 || year > 9999) 155 j_yearly(year); 157 yearly(year); 169 monthly(month, year) in monthly() argument 170 int month, year; in monthly() 191 j_yearly(year) in j_yearly() argument 192 int year; in j_yearly() 226 yearly(year) in yearly() argument 227 int year; in yearly() 270 int month, year; in day_array() [all …]
|
H A D | README | 12 calculate the number of days in all prior years (year-1)*365 13 add the number of leap years (days?) since year 1 14 (not including this year as that is covered later) 15 add the day number within the year 16 this compensates for the non-inclusive leap year 32 to the date for which the leap year is being calculated. A year that occurs 33 before the reformation is determined to be a leap year if its modulo of 34 4 equals zero. But after the reformation, a year is only a leap year if 37 zero, then the year is a leap year anyway. This is, in fact, what the 41 Once we have the day in year for the first of the month in question, the
|
/original-bsd/usr.bin/chpass/ |
H A D | util.c | 58 int day, month, year; local 84 year = atoi(t); 85 if (day < 1 || day > 31 || month < 1 || month > 12 || !year) 87 if (year < 100) 88 year += TM_YEAR_BASE; 89 if (year <= EPOCH_YEAR) 91 tval = isleap(year) && month > 2; 92 for (--year; year >= EPOCH_YEAR; --year) 93 tval += isleap(year) ?
|
/original-bsd/sys/pmax/pmax/ |
H A D | clock.c | 91 int sec, min, hour, day, mon, year; local 113 year = c->year + YR_OFFSET; 117 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31 || 131 for (yr = 70; yr < year; yr++) 167 int sec, min, hour, day, mon, year; in resettodr() local 172 year = 69; in resettodr() 175 year++; in resettodr() 176 t2 -= LEAPYEAR(year) ? 366 : 365; in resettodr() 180 t2 = LEAPYEAR(year); in resettodr() 206 c->year = year - YR_OFFSET; in resettodr()
|
H A D | clockreg.h | 29 #define LEAPYEAR(year) (((year) % 4) == 0) argument 53 u_char year; /* year */ member
|
/original-bsd/sys/vax/vax/ |
H A D | clock.c | 126 int year; local 144 year = YRREF; 146 if (LEAPYEAR(year)) 148 year++; 157 int year = YRREF; in vaxstd_clkwrite() local 167 if (LEAPYEAR(year)) in vaxstd_clkwrite() 172 year++; in vaxstd_clkwrite() 191 if (c->year < 70 || c->mon < 1 || c->mon > 12 || 197 for (yr = 70; yr < c->year; yr++) 219 c->year = t;
|
H A D | ka820.c | 98 c.year = clock->yr; 107 c.year >>= 1; /* tweak */ 128 c.year <<= 1; /* tweak */ in ka820_clkwrite() 139 clock->yr = c.year; in ka820_clkwrite()
|
/original-bsd/usr.bin/at/at/ |
H A D | at.c | 103 int year; /* year that job is to be run */ member 246 ++attime.year; 471 makeatfile(atfile,year,dayofyear,hour,minute) in makeatfile() argument 472 int year; in makeatfile() 511 printf("YEAR\tnowtime: %d\tattime: %d\n",nowtime.year,attime.year); in printit() 619 ++attime.year; 674 leap = isleap(attime.year); in countdays() 691 isleap(year) in isleap() argument 692 int year; in isleap() 695 return((year%4 == 0 && year%100 != 0) || year%100 == 0); [all …]
|
/original-bsd/sys/sparc/sparc/ |
H A D | clock.c | 313 chiptotime(sec, min, hour, day, mon, year) in chiptotime() argument 314 register int sec, min, hour, day, mon, year; in chiptotime() 323 year = FROMBCD(year) + YEAR0; 326 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) 329 for (yr = 70; yr < year; yr++) 345 int year; member 364 c->year = t; 390 c->year = TOBCD(c->year - YEAR0); 400 int sec, min, hour, day, mon, year; local 416 year = cl->cl_year; [all …]
|
/original-bsd/sys/news3400/news3400/ |
H A D | clock.c | 91 int sec, min, hour, week, day, mon, year; local 109 year = bcd_to_int(*rtc_data++); 113 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31 || 126 for (yr = 70; yr < year; yr++) 161 int sec, min, hour, week, day, mon, year; in resettodr() local 174 year = t; in resettodr() 205 *rtc_data = int_to_bcd(year); in resettodr()
|
H A D | clockreg.h | 24 #define LEAPYEAR(year) (((year) % 4) == 0) argument
|
/original-bsd/sys/vax/include/ |
H A D | clock.h | 30 #define LEAPYEAR(year) ((year)%4==0) /* good till time becomes negative */ argument 56 int year; member
|
/original-bsd/usr.bin/at/atq/ |
H A D | atq.c | 377 int year = 0; /* year file will be executed */ local 386 sscanf(filename,"%2d.%3d.%2d%2d",&year,&yday,&hour,&min); 387 get_mth_day(year,yday,&month,&day); 393 day, year,hour,min); 404 get_mth_day(year,dayofyear,month,day) in get_mth_day() argument 405 int year, dayofyear, *month, *day; in get_mth_day() 427 leap = ((year%4 == 0 && year%100 != 0) || year%100 == 0);
|
/original-bsd/sys/tahoe/include/ |
H A D | clock.h | 14 #define LEAPYEAR(year) ((year)%4==0) /* good till time becomes negative */ argument
|
/original-bsd/sys/luna68k/luna68k/ |
H A D | clock.c | 219 int year, month, day, hour, min, sec; local 236 year = bbc2->cal_year + 1900; 247 year = bcd_to_binary(bbc->cal_year) + 1900; 257 if (year < 1970) { 258 year += 100; 263 for (i = STARTOFTIME; i < year; i++) 265 if (leapyear(year) && month > FEBRUARY)
|
H A D | clockreg.h | 46 #define leapyear(year) ((year) % 4 == 0) argument
|
/original-bsd/contrib/ansi/ |
H A D | ansitape.c | 37 int year; local 61 year = tm->tm_year; 246 writefile(tape,file,filename,tapename,filenum,year,day, 281 int year; 288 writehdr1(tape,filename,tapename,filenum,year,day); 494 writehdr1(tape,filename,tapename,filenum,year,day) in writehdr1() argument 499 int year; 505 ,filename,tapename,filenum,year,day,year,day); 509 writeeof1(tape,filename,tapename,filenum,year,day,blocks) in writeeof1() argument 514 int year; [all …]
|
/original-bsd/sys/hp300/hp300/ |
H A D | clock.c | 341 int year, month, day, hour, min, sec; local 354 year = bbc_to_decimal(12, 11) + 1900; 359 range_test(year, STARTOFTIME, 2000); 363 for (i = STARTOFTIME; i < year; i++) 365 if (leapyear(year) && month > FEBRUARY)
|
H A D | clockreg.h | 94 #define leapyear(year) ((year) % 4 == 0) argument
|
/original-bsd/local/sccscmds/sccscmds.2/com/ |
H A D | date_ab.c | 18 #define dysize(year) (isleap(year) ? DAYSPERLYEAR : DAYSPERNYEAR) argument
|
/original-bsd/local/sccscmds/sccscmds.ok/com/ |
H A D | date_ab.c | 18 #define dysize(year) (isleap(year) ? DAYSPERLYEAR : DAYSPERNYEAR) argument
|
/original-bsd/share/zoneinfo/ |
H A D | zic.c | 951 int year, month, day; local 962 year < min_year || year > max_year) { 970 while (j != year) { 971 if (year > j) { 1307 register int year; local 1341 } else for (year = min_year; year <= max_year; ++year) { 1353 year <= rp->r_hiyear && 1555 yearistype(year, type) in yearistype() argument 1556 const int year; in yearistype() 1565 return (year % 4) == 0; [all …]
|
/original-bsd/admin/admin/4.3Reno/ |
H A D | Add.Reno.86.ATT | 37 Sublicensing of 4.3BSD-Reno is allowed only until one (1) year after the 41 sublicenses entered into after the one (1) year period specified above. 43 After the one (1) year period specified above, Licensee may continue
|
H A D | Add.Reno.83 | 31 Sublicensing of 4.3BSD-Reno is allowed only until one (1) year after the 36 sublicenses entered into after the one (1) year period specified above. 38 After the one (1) year period specified above, Licensee may continue
|
/original-bsd/lib/libc/gen/ |
H A D | ctime.c | 156 static time_t transtime P((time_t janfirst, int year, 547 transtime(janfirst, year, rulep, offset) in transtime() argument 549 const int year; 558 leapyear = isleap(year); 596 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year; 693 register int year; local 723 for (year = EPOCH_YEAR; year <= 2037; ++year) { 724 starttime = transtime(janfirst, year, &start, 726 endtime = transtime(janfirst, year, &end, 740 year_lengths[isleap(year)] * SECSPERDAY;
|