Home
last modified time | relevance | path

Searched refs:tm_yday (Results 1 – 25 of 64) 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()
194 if (timeptr->tm_yday < 0) { in set_week_number_sun()
196 timeptr->tm_yday = 0; in set_week_number_sun()
209 timeptr->tm_yday = wnum * 7 + (timeptr->tm_wday + 6) % 7 - fday; in set_week_number_mon()
210 if (timeptr->tm_yday < 0) { in set_week_number_mon()
212 timeptr->tm_yday = 0; in set_week_number_mon()
229 timeptr->tm_yday = offset + (wnum - 1) * 7 + timeptr->tm_wday - fday; in set_week_number_mon4()
230 if (timeptr->tm_yday < 0) { in set_week_number_mon4()
232 timeptr->tm_yday = 0; in set_week_number_mon4()
321 timeptr->tm_yday = ret - 1; 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()
139 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - wday + 7) % 7) / 7; in week_number_mon()
152 int w1day = (wday - tm->tm_yday % 7 + 7) % 7; in week_number_mon4()
155 ret = (tm->tm_yday + w1day) / 7; in week_number_mon4()
250 "%03d", tm->tm_yday + 1); in strftime()
/freebsd/usr.sbin/makefs/cd9660/
H A Dcd9660_conversion.c155 gm.tm_yday -= t.tm_yday; in cd9660_compute_gm_offset()
159 gm.tm_yday = -1; in cd9660_compute_gm_offset()
161 gm.tm_yday = 1; in cd9660_compute_gm_offset()
163 return (char)(-(gm.tm_min + 60* (24 * gm.tm_yday + gm.tm_hour)) / 15); in cd9660_compute_gm_offset()
/freebsd/contrib/sendmail/src/
H A Darpadate.c135 else if (lt->tm_yday < gmt.tm_yday)
137 else if (lt->tm_yday > gmt.tm_yday)
/freebsd/usr.bin/touch/
H A Dtouch.c266 t->tm_yday = -1; in stime_arg1()
268 if (t->tm_yday == -1) in stime_arg1()
301 t->tm_yday = -1; in stime_arg2()
303 if (t->tm_yday == -1) in stime_arg2()
345 t.tm_yday = -1; in stime_darg()
347 if (t.tm_yday == -1) in stime_darg()
/freebsd/lib/libc/stdtime/
H A Dstrptime.c226 tm->tm_yday = i - 1; in _strptime()
622 tm->tm_yday = start_of_month[isleap(tm->tm_year + in _strptime()
647 tm->tm_yday = tmpyday; in _strptime()
655 while (tm->tm_yday >= in _strptime()
661 tm->tm_yday -= in _strptime()
670 tm->tm_mday = tm->tm_yday - in _strptime()
677 tm->tm_wday = (wday_offset + tm->tm_yday) % 7; in _strptime()
H A Dstrftime.c228 pt = _conv(t->tm_yday + 1, in _fmt()
321 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
367 yday = t->tm_yday; in _fmt()
434 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
/freebsd/contrib/ntp/libntp/
H A Duglydate.c35 tm->tm_yday = 0; in uglydate()
46 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec, in uglydate()
/freebsd/usr.bin/finger/
H A Dlprint.c180 if (w->idletime != -1 && (delta->tm_yday || in lprint()
184 if (delta->tm_yday > 0) { in lprint()
186 delta->tm_yday, in lprint()
187 delta->tm_yday == 1 ? "" : "s"); in lprint()
H A Dsprint.c166 if (!delta->tm_yday) in stimeprint()
176 (void)printf("%4dd", delta->tm_yday); in stimeprint()
/freebsd/usr.sbin/ac/
H A Dac.c428 if (day >= 0 && day != ltm->tm_yday) { in ac()
429 day = ltm->tm_yday; in ac()
440 day = ltm->tm_yday; in ac()
483 if (day >= 0 && day != ltm->tm_yday) { in ac()
/freebsd/contrib/diff/lib/
H A Dstrftime.c290 + (a->tm_yday - b->tm_yday)); in tm_diff()
961 DO_NUMBER (3, 1 + tp->tm_yday);
1110 DO_NUMBER (2, (tp->tm_yday - tp->tm_wday + 7) / 7);
1119 int days = iso_week_days (tp->tm_yday, tp->tm_wday);
1125 days = iso_week_days (tp->tm_yday + (365 + __isleap (year)),
1130 int d = iso_week_days (tp->tm_yday - (365 + __isleap (year)),
1157 DO_NUMBER (2, (tp->tm_yday - (tp->tm_wday - 1 + 7) % 7 + 7) / 7);
/freebsd/contrib/tzcode/
H A Dstrftime.c256 pt = _conv(t->tm_yday + 1, "%03d", pt, ptlim); in _fmt()
357 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
402 yday = t->tm_yday; in _fmt()
471 pt = _conv((t->tm_yday + DAYSPERWEEK - in _fmt()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_bancomm.c101 int32_t tm_yday; member
594 time_vme->day = maj.tm_yday+1; in tvme_fill()
610 time_vme->day = stfp->tm.tm_yday+1; in stfp_time2tvme()
/freebsd/crypto/openssh/openbsd-compat/
H A Dstrptime.c253 if (!(_conv_num(&bp, &tm->tm_yday, 1, 366))) in _strptime()
255 tm->tm_yday--; in _strptime()
/freebsd/usr.bin/calendar/
H A Dpom.c127 days_today = (GMT.tm_yday + 1) + ((GMT.tm_hour + in fpom()
137 days_tomorrow = (GMT.tm_yday + 1) + ((GMT.tm_hour + in fpom()
/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
83 H_REQUIRE_FIELD(tm_yday); in h_pass()
/freebsd/bin/date/
H A Ddate.c337 lt->tm_yday = -1; in setthetime()
339 if (lt->tm_yday == -1) in setthetime()
/freebsd/contrib/ldns/
H A Dutil.c239 result->tm_yday = (int) days; in ldns_year_and_yday_from_days_since_epoch()
250 int idays = result->tm_yday; in ldns_mon_and_mday_from_year_and_yday()
267 + result->tm_yday; in ldns_wday_from_year_and_yday()
/freebsd/contrib/unbound/sldns/
H A Dparseutil.c111 result->tm_yday = (int) days; in sldns_year_and_yday_from_days_since_epoch()
122 int idays = result->tm_yday; in sldns_mon_and_mday_from_year_and_yday()
139 + result->tm_yday; in sldns_wday_from_year_and_yday()
/freebsd/contrib/unbound/compat/
H A Dgmtime_r.c92 tmp->tm_yday = (int) days;
/freebsd/include/
H A Dtime.h106 int tm_yday; /* days since January 1 [0-365] */ member
/freebsd/sbin/setkey/
H A Dsetkey.c659 dir = loc->tm_yday - gmt->tm_yday; in gmt2local()
/freebsd/contrib/file/src/
H A Dcdf_time.c128 tm.tm_yday = 0; in cdf_timestamp_to_timespec()
/freebsd/crypto/openssl/crypto/asn1/
H A Da_time.c60 tm->tm_yday = ydays[m] + d - 1; in determine_days()
63 tm->tm_yday += leap_year(y); in determine_days()

123