/src/usr.bin/cal/ |
cal.c | 199 static int dow; variable in typeref:typename:int 248 dow = getnum(optarg); 249 if (dow < 0 || dow > 6) 435 if (dow) { 437 j_day_headings + 4 * dow : 438 day_headings + 3 * dow); 439 printf("%.*s", dow * (julian ? 4 : 3) - 1, 555 return ((temp - dow + 6 + SATURDAY) % 7); 557 return (((temp - dow + 6 + SATURDAY) - NUMBER_MISSING_DAYS) % 7) [all...] |
cal.c | 199 static int dow; variable in typeref:typename:int 248 dow = getnum(optarg); 249 if (dow < 0 || dow > 6) 435 if (dow) { 437 j_day_headings + 4 * dow : 438 day_headings + 3 * dow); 439 printf("%.*s", dow * (julian ? 4 : 3) - 1, 555 return ((temp - dow + 6 + SATURDAY) % 7); 557 return (((temp - dow + 6 + SATURDAY) - NUMBER_MISSING_DAYS) % 7) [all...] |
/src/lib/libc/time/ |
localtime.c | 1168 int d, m1, yy0, yy1, yy2, dow; local in function:transtime 1208 dow = ((26 * m1 - 2) / 10 + 1210 if (dow < 0) 1211 dow += DAYSPERWEEK; 1214 ** "dow" is the day-of-week of the first day of the month. Get 1215 ** the day-of-month (zero-origin) of the first "dow" day of the 1218 d = rulep->r_day - dow;
|
localtime.c | 1168 int d, m1, yy0, yy1, yy2, dow; local in function:transtime 1208 dow = ((26 * m1 - 2) / 10 + 1210 if (dow < 0) 1211 dow += DAYSPERWEEK; 1214 ** "dow" is the day-of-week of the first day of the month. Get 1215 ** the day-of-month (zero-origin) of the first "dow" day of the 1218 d = rulep->r_day - dow;
|