/freebsd/crypto/heimdal/lib/roken/ |
H A D | strptime.c | 193 timeptr->tm_yday = wnum * 7 + timeptr->tm_wday - fday; in set_week_number_sun() 195 timeptr->tm_wday = fday; in set_week_number_sun() 209 timeptr->tm_yday = wnum * 7 + (timeptr->tm_wday + 6) % 7 - fday; in set_week_number_mon() 211 timeptr->tm_wday = (fday + 1) % 7; in set_week_number_mon() 229 timeptr->tm_yday = offset + (wnum - 1) * 7 + timeptr->tm_wday - fday; in set_week_number_mon4() 231 timeptr->tm_wday = fday; in set_week_number_mon4() 261 timeptr->tm_wday = ret; in strptime() 267 timeptr->tm_wday = ret; in strptime() 382 timeptr->tm_wday = ret - 1; in strptime() 387 timeptr->tm_wday = ret; in strptime()
|
H A D | strftime.c | 126 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7; in week_number_sun() 137 int wday = (tm->tm_wday + 6) % 7; in week_number_mon() 151 int wday = (tm->tm_wday + 6) % 7; in week_number_mon4() 184 "%s", abb_weekdays[tm->tm_wday]); in strftime() 188 "%s", full_weekdays[tm->tm_wday]); in strftime() 311 "%d", (tm->tm_wday == 0) ? 7 : tm->tm_wday); in strftime() 323 "%d", tm->tm_wday); in strftime()
|
/freebsd/contrib/tzcode/ |
H A D | strftime.c | 177 pt = _add((t->tm_wday < 0 || in _fmt() 178 t->tm_wday >= DAYSPERWEEK) ? in _fmt() 179 "?" : Locale->weekday[t->tm_wday], in _fmt() 183 pt = _add((t->tm_wday < 0 || in _fmt() 184 t->tm_wday >= DAYSPERWEEK) ? in _fmt() 185 "?" : Locale->wday[t->tm_wday], in _fmt() 358 t->tm_wday) / DAYSPERWEEK, in _fmt() 368 pt = _conv((t->tm_wday == 0) ? in _fmt() 369 DAYSPERWEEK : t->tm_wday, in _fmt() 403 wday = t->tm_wday; in _fmt() [all …]
|
H A D | asctime.c | 96 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r() 98 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
|
/freebsd/lib/libc/stdtime/ |
H A D | strftime.c | 132 pt = _add((t->tm_wday < 0 || in _fmt() 133 t->tm_wday >= DAYSPERWEEK) ? in _fmt() 134 "?" : tptr->weekday[t->tm_wday], in _fmt() 138 pt = _add((t->tm_wday < 0 || in _fmt() 139 t->tm_wday >= DAYSPERWEEK) ? in _fmt() 140 "?" : tptr->wday[t->tm_wday], in _fmt() 322 t->tm_wday) / DAYSPERWEEK, in _fmt() 333 pt = _conv((t->tm_wday == 0) ? in _fmt() 334 DAYSPERWEEK : t->tm_wday, in _fmt() 368 wday = t->tm_wday; in _fmt() [all …]
|
H A D | strptime.c | 342 tm->tm_wday = i; in _strptime() 387 tm->tm_wday = i % 7; in _strptime() 637 tmpwday = (flags & FLAG_WDAY) ? tm->tm_wday : in _strptime() 683 tm->tm_wday = wday_offset; in _strptime()
|
/freebsd/bin/date/ |
H A D | vary.c | 260 if (val < t->tm_wday) in adjwday() 261 val = 7 - t->tm_wday + val; /* early next week */ in adjwday() 263 val -= t->tm_wday; /* later this week */ in adjwday() 269 if (val > t->tm_wday) in adjwday() 270 val = 7 - val + t->tm_wday; /* later last week */ in adjwday() 272 val = t->tm_wday - val; /* early this week */ in adjwday() 277 if (val < t->tm_wday) in adjwday() 278 return adjday(t, '-', t->tm_wday - val, mk); in adjwday() 281 else if (val > t->tm_wday) in adjwday() 282 return adjday(t, '+', val - t->tm_wday, mk); in adjwday()
|
/freebsd/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 283 if (tm.tm_wday > 4) in ATF_TC_BODY() 285 tm.tm_mday += 4 - tm.tm_wday; in ATF_TC_BODY() 292 tm.tm_mday += 14 - (tm.tm_wday ? tm.tm_wday : 7); in ATF_TC_BODY() 298 if (tm.tm_wday <= 5) in ATF_TC_BODY() 300 tm.tm_mday += 5 - tm.tm_wday; in ATF_TC_BODY() 308 if (tm.tm_wday > 3) in ATF_TC_BODY() 310 tm.tm_mday += 3 - tm.tm_wday; in ATF_TC_BODY() 382 if (tm.tm_wday <= 2) in ATF_TC_BODY() 384 tm.tm_mday += 2 - tm.tm_wday; in ATF_TC_BODY() 409 if (tm.tm_wday > 2) in ATF_TC_BODY() [all …]
|
/freebsd/usr.bin/at/ |
H A D | parsetime.c | 412 tm->tm_wday++; in tod() 494 tm->tm_wday ++; in month() 524 if (wday < tm->tm_wday) in month() 525 mday += 7 - (tm->tm_wday - wday); in month() 527 mday += (wday - tm->tm_wday); in month() 529 tm->tm_wday = wday; in month() 650 runtime.tm_wday++; in parsetime()
|
/freebsd/contrib/unbound/compat/ |
H A D | gmtime_r.c | 75 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK); 76 if (tmp->tm_wday < 0) 77 tmp->tm_wday += DAYSPERWEEK;
|
H A D | strptime.c | 139 tm->tm_wday = ret; in unbound_strptime() 277 tm->tm_wday = ret; in unbound_strptime()
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 74 __result.tm_wday = static_cast<unsigned>(__weekday.c_encoding()); in __convert_to_tm() 148 __result.tm_wday = __value.c_encoding(); in __convert_to_tm() 150 __result.tm_wday = __value.weekday().c_encoding(); in __convert_to_tm() 157 __result.tm_wday = __value.weekday_indexed().weekday().c_encoding(); in __convert_to_tm()
|
/freebsd/contrib/diff/lib/ |
H A D | strftime.c | 393 ((const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ABDAY_1) + tp->tm_wday)) 395 ((const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(DAY_1) + tp->tm_wday)) 409 # define f_wkday (weekday_name[tp->tm_wday]) 1104 DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); 1110 DO_NUMBER (2, (tp->tm_yday - tp->tm_wday + 7) / 7); 1119 int days = iso_week_days (tp->tm_yday, tp->tm_wday); 1126 tp->tm_wday); 1131 tp->tm_wday); 1157 DO_NUMBER (2, (tp->tm_yday - (tp->tm_wday - 1 + 7) % 7 + 7) / 7); 1163 DO_NUMBER (1, tp->tm_wday);
|
/freebsd/contrib/ldns/ |
H A D | util.c | 264 result->tm_wday = 4 /* 1-1-1970 was a thursday */ in ldns_wday_from_year_and_yday() 268 result->tm_wday = LDNS_MOD(result->tm_wday, 7); in ldns_wday_from_year_and_yday() 269 if (result->tm_wday < 0) { in ldns_wday_from_year_and_yday() 270 result->tm_wday += 7; in ldns_wday_from_year_and_yday()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | ptimes.c | 265 if (l != tm.tm_wday) { in parseDWM() 268 if (l < tm.tm_wday) { in parseDWM() 269 save = 6 - tm.tm_wday; in parseDWM() 272 save = l - tm.tm_wday; in parseDWM()
|
/freebsd/contrib/unbound/sldns/ |
H A D | parseutil.c | 136 result->tm_wday = 4 /* 1-1-1970 was a thursday */ in sldns_wday_from_year_and_yday() 140 result->tm_wday = LDNS_MOD(result->tm_wday, 7); in sldns_wday_from_year_and_yday() 141 if (result->tm_wday < 0) { in sldns_wday_from_year_and_yday() 142 result->tm_wday += 7; in sldns_wday_from_year_and_yday()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | strptime.c | 189 tm->tm_wday = i; in _strptime() 321 if (!(_conv_num(&bp, &tm->tm_wday, 0, 6))) in _strptime()
|
/freebsd/contrib/netbsd-tests/lib/libc/time/ |
H A D | t_strptime.c | 46 int tm_mon, int tm_year, int tm_wday, int tm_yday) in h_pass() argument 82 H_REQUIRE_FIELD(tm_wday); in h_pass()
|
/freebsd/usr.bin/calendar/ |
H A D | day.c | 57 after = tp.tm_wday == friday ? 3 : 1; in settimes()
|
H A D | locale.c | 81 tm.tm_wday = i; in setnnames()
|
/freebsd/contrib/bmake/ |
H A D | util.c | 480 s = snprintf(buf, len, "%s", days[tm->tm_wday]); in strftime() 483 s = snprintf(buf, len, "%.3s", days[tm->tm_wday]); in strftime() 537 s = snprintf(buf, len, "%02d", tm->tm_wday); in strftime()
|
/freebsd/include/ |
H A D | time.h | 105 int tm_wday; /* days since Sunday [0-6] */ member
|
/freebsd/lib/libutil/ |
H A D | login_times.c | 113 if ((u_char)(0x01 << tt->tm_wday) & ltm->lt_dow) { in in_ltm()
|
/freebsd/contrib/file/src/ |
H A D | cdf_time.c | 127 tm.tm_wday = 0; in cdf_timestamp_to_timespec()
|
/freebsd/contrib/ntp/libntp/ |
H A D | prettydate.c | 201 daynames[tm->tm_wday], months[tm->tm_mon], in common_prettydate()
|