Home
last modified time | relevance | path

Searched refs:tm_wday (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/crypto/heimdal/lib/roken/
H A Dstrptime.c193 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 Dstrftime.c126 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 Dstrftime.c177 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 Dasctime.c96 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 Dstrftime.c132 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 Dstrptime.c342 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 Dvary.c260 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 Dt_parsedate.c283 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 Dparsetime.c412 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 Dgmtime_r.c75 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK);
76 if (tmp->tm_wday < 0)
77 tmp->tm_wday += DAYSPERWEEK;
H A Dstrptime.c139 tm->tm_wday = ret; in unbound_strptime()
277 tm->tm_wday = ret; in unbound_strptime()
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dconvert_to_tm.h74 __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 Dstrftime.c393 ((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 Dutil.c264 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 Dptimes.c265 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 Dparseutil.c136 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 Dstrptime.c189 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 Dt_strptime.c46 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 Dday.c57 after = tp.tm_wday == friday ? 3 : 1; in settimes()
H A Dlocale.c81 tm.tm_wday = i; in setnnames()
/freebsd/contrib/bmake/
H A Dutil.c480 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 Dtime.h105 int tm_wday; /* days since Sunday [0-6] */ member
/freebsd/lib/libutil/
H A Dlogin_times.c113 if ((u_char)(0x01 << tt->tm_wday) & ltm->lt_dow) { in in_ltm()
/freebsd/contrib/file/src/
H A Dcdf_time.c127 tm.tm_wday = 0; in cdf_timestamp_to_timespec()
/freebsd/contrib/ntp/libntp/
H A Dprettydate.c201 daynames[tm->tm_wday], months[tm->tm_mon], in common_prettydate()

123