Home
last modified time | relevance | path

Searched refs:DAYSPERWEEK (Results 1 – 13 of 13) sorted by relevance

/src/contrib/tzcode/
H A Dstrftime.c105 const char * wday[DAYSPERWEEK];
106 const char * weekday[DAYSPERWEEK];
235 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
241 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
415 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
416 t->tm_wday) / DAYSPERWEEK, in _fmt()
427 DAYSPERWEEK : t->tm_wday, in _fmt()
475 DAYSPERWEEK) - 3; in _fmt()
481 (len % DAYSPERWEEK); in _fmt()
483 top += DAYSPERWEEK; in _fmt()
[all …]
H A Dasctime.c89 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
H A Dlocaltime.c1426 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in getsecs()
1507 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule()
1582 dow += DAYSPERWEEK; in transtime()
1591 d += DAYSPERWEEK; in transtime()
1593 if (d + DAYSPERWEEK >= in transtime()
1596 d += DAYSPERWEEK; in transtime()
2427 + ((tmp->tm_year % DAYSPERWEEK) in timesub()
2428 * (DAYSPERNYEAR % DAYSPERWEEK)) in timesub()
2432 tmp->tm_wday %= DAYSPERWEEK; in timesub()
2434 tmp->tm_wday += DAYSPERWEEK; in timesub()
H A Dzic.c3189 if (hours >= HOURSPERDAY * DAYSPERWEEK) { in stringoffset()
3227 wdayoff = (rp->r_dayofmonth - 1) % DAYSPERWEEK; in stringrule()
3232 week = 1 + (rp->r_dayofmonth - 1) / DAYSPERWEEK; in stringrule()
3237 wdayoff = rp->r_dayofmonth % DAYSPERWEEK; in stringrule()
3242 week = rp->r_dayofmonth / DAYSPERWEEK; in stringrule()
3246 wday += DAYSPERWEEK; in stringrule()
4158 zic_t wday = ((EPOCH_WDAY + dayoff % DAYSPERWEEK + DAYSPERWEEK) in rpytime()
4159 % DAYSPERWEEK); in rpytime()
4163 if (++wday >= DAYSPERWEEK) in rpytime()
4169 wday = DAYSPERWEEK - 1; in rpytime()
H A Dprivate.h1102 DAYSPERWEEK = 7, enumerator
/src/lib/libc/stdtime/
H A Dstrftime.c135 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
141 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
323 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
324 t->tm_wday) / DAYSPERWEEK, in _fmt()
336 DAYSPERWEEK : t->tm_wday, in _fmt()
384 DAYSPERWEEK) - 3; in _fmt()
390 (len % DAYSPERWEEK); in _fmt()
392 top += DAYSPERWEEK; in _fmt()
401 DAYSPERWEEK); in _fmt()
436 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
[all …]
/src/contrib/unbound/compat/
H A Dgmtime_r.c19 #define DAYSPERWEEK 7 macro
75 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK);
77 tmp->tm_wday += DAYSPERWEEK;
/src/usr.bin/finger/
H A Dsprint.c121 #define DAYSPERWEEK 7 in sflag_print() macro
123 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) { in sflag_print()
/src/contrib/ntp/include/
H A Dntp_calendar.h90 #define DAYSPERWEEK (7) /* days per week */ macro
95 #define SECSPERWEEK (DAYSPERWEEK * SECSPERDAY)
/src/contrib/ntp/libntp/
H A Dmktime.c82 #define DAYSPERWEEK 7 macro
H A Dntp_calendar.c1922 uw = sf32 ^ ((sf32 ^ ud) / DAYSPERWEEK); in isocal_ntp64_to_date()
1923 ud -= uw * DAYSPERWEEK; in isocal_ntp64_to_date()
2081 s_gpsweek = (day - NTP_TO_GPS_DAYS) / DAYSPERWEEK; in basedate_set_day()
/src/contrib/sendmail/vacation/
H A Dvacation.c75 #define DAYSPERWEEK 7 macro
916 next = SECSPERDAY * DAYSPERWEEK; in recent()
/src/contrib/ntp/
H A DCommitLog40717 Added definitions for DAYSPERWEEK and SECSPERWEEK.