/freebsd-11-stable/contrib/apr-util/misc/ |
H A D | apr_date.c | 178 ds.tm_year = ((date[7] - '0') * 10 + (date[8] - '0') - 19) * 100; 179 if (ds.tm_year < 0) 182 ds.tm_year += ((date[9] - '0') * 10) + (date[10] - '0'); 191 ds.tm_year = ((date[7] - '0') * 10) + (date[8] - '0'); 192 if (ds.tm_year < 70) 193 ds.tm_year += 100; 202 ds.tm_year = ((date[16] - '0') * 10 + (date[17] - '0') - 19) * 100; 203 if (ds.tm_year < 0) 206 ds.tm_year += ((date[18] - '0') * 10) + (date[19] - '0'); 220 ds.tm_year [all...] |
/freebsd-11-stable/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 64 if (tm->tm_year > ASN1_MAX_YEAR) 67 if (tm->tm_year < 0) 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm->tm_mon]) 80 for (i = 70; i < tm->tm_year; ++i) 84 res += ndays[is_leap(tm->tm_year)][i]; 116 tm->tm_year = 70; 118 unsigned dayinyear = (is_leap(tm->tm_year) ? 366 : 365); 121 tm->tm_year += 1; 127 unsigned daysinmonth = ndays[is_leap(tm->tm_year)][tm->tm_mon];
|
H A D | check-timegm.c | 46 tm.tm_year = 106; 62 if (tm.tm_year != 106 ||
|
/freebsd-11-stable/contrib/mdocml/ |
H A D | test-strptime.c | 13 tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4);
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 59 if (tm->tm_year < 0) 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) 72 for (i = 70; i < tm->tm_year; ++i) 76 res += ndays[is_leap(tm->tm_year)][i];
|
H A D | strftime.c | 202 tm->tm_year, 211 "%02d", (tm->tm_year + 1900) / 100); 222 (tm->tm_year + 1900) % 100); 230 "%04d-%02d-%02d", tm->tm_year + 1900, 332 tm->tm_year, 338 "%02d", (tm->tm_year + 1900) % 100); 342 "%d", tm->tm_year + 1900);
|
H A D | strptime.c | 155 * tm_year is relative this year 191 int fday = first_day (timeptr->tm_year + tm_year_base); 207 int fday = (first_day (timeptr->tm_year + tm_year_base) + 6) % 7; 223 int fday = (first_day (timeptr->tm_year + tm_year_base) + 6) % 7; 285 timeptr->tm_year = (ret * 100) - tm_year_base; 414 timeptr->tm_year = 100 + ret; 416 timeptr->tm_year = ret; 421 timeptr->tm_year = ret - tm_year_base;
|
/freebsd-11-stable/sys/i386/ibcs2/ |
H A D | ibcs2_time.h | 45 int tm_year; member in struct:ibcs2_tm
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | gmt2local.c | 60 dir = loc->tm_year - gmt->tm_year;
|
/freebsd-11-stable/usr.bin/calendar/ |
H A D | day.c | 62 year1 = 1900 + tp1->tm_year; 65 year2 = 1900 + tp2->tm_year; 97 tm.tm_year = tp.tm_year; 103 tm.tm_year = y;
|
/freebsd-11-stable/gnu/usr.bin/rcs/lib/ |
H A D | maketime.c | 80 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN)); 108 int ay = a->tm_year + (TM_YEAR_ORIGIN - 1); 109 int by = b->tm_year + (TM_YEAR_ORIGIN - 1); 157 --t->tm_year; 174 ++t->tm_year; 215 - (tm->tm_mon<2 || ! isleap(tm->tm_year + TM_YEAR_ORIGIN)); 236 if ( (tm->tm_year ^ gtm->tm_year) 270 if (TM_DEFINED(pt->ymodulus) || !TM_DEFINED(tm.tm_year)) { 278 tm.tm_year [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/time/ |
H A D | t_mktime.c | 71 tms.tm_year = ~0; 92 tms.tm_year = 1970 - 1900; 100 tms.tm_year = 1970 - 1900; 112 tms.tm_year = 1969 - 1900; 127 tms.tm_year = 1970 - 1900; 138 tms.tm_year = 1970 - 1900;
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | mktime.c | 158 if ((result = (atmp->tm_year - btmp->tm_year)) == 0 && 201 normalize(&yourtm.tm_year, &yourtm.tm_mon, MONSPERYEAR); 203 --yourtm.tm_year; 205 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)]; 208 i = mon_lengths[isleap(yourtm.tm_year + 215 ++yourtm.tm_year;
|
/freebsd-11-stable/contrib/unbound/compat/ |
H A D | strptime.c | 164 tm->tm_year = ret*100 + (tm->tm_year%100); 167 tm->tm_year = ret*100 - TM_YEAR_BASE; 304 tm->tm_year = ((tm->tm_year/100) * 100) + ret; 315 tm->tm_year = ret; 323 tm->tm_year = ret - TM_YEAR_BASE;
|
/freebsd-11-stable/usr.sbin/newsyslog/ |
H A D | ptimes.c | 148 tm.tm_year = ((l / 1000000) - 19) * 100; 152 tm.tm_year -= tm.tm_year % 100; 153 tm.tm_year += l / 10000; 169 if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12 230 daysmon = days_pmonth(tm.tm_mon, tm.tm_year); 415 dpm = days_pmonth(ptime->tm.tm_mon, ptime->tm.tm_year); 427 ptime->tm.tm_year, ptime->tm.tm_mon, 437 ptime->tm.tm_year, ptime->tm.tm_mon, 538 tm.tm_year [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | time.c | 113 exploded_time.tm_year + 1900, 147 exploded_time.tm_year = (apr_int32_t) svn__strtoul(data, &c); 162 exploded_time.tm_year -= 1900; 184 &exploded_time.tm_year, 193 exploded_time.tm_year -= 1900; 232 exploded_time.tm_year + 1900,
|
H A D | date.c | 72 { 'Y', DIGITS, ACCUM, APR_OFFSETOF(match_state, base.tm_year) }, 334 expt.tm_year -= 1900; 341 expt.tm_year = expnow.tm_year; 357 /* february/leap-year day checking. tm_year is bias-1900, so centuries 361 && (expt.tm_year % 4 != 0 362 || (expt.tm_year % 100 == 0 && expt.tm_year % 400 != 100)))
|
/freebsd-11-stable/usr.sbin/makefs/cd9660/ |
H A D | cd9660_conversion.c | 156 gm.tm_year -= t.tm_year; 160 if (gm.tm_year < 0) 162 else if (gm.tm_year > 0) 177 1900+(int)t.tm_year, 195 buf[0] = t.tm_year;
|
/freebsd-11-stable/usr.bin/touch/ |
H A D | touch.c | 241 t->tm_year = ATOI2(arg); 242 t->tm_year *= 100; 248 t->tm_year += yearset; 252 t->tm_year = yearset + 2000; 254 t->tm_year = yearset + 1900; 256 t->tm_year -= 1900; /* Convert to UNIX time. */ 297 t->tm_year = ATOI2(arg); 298 if (t->tm_year < 39) /* support 2000-2038 not 1902-1969 */ 299 t->tm_year += 100;
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | arpadate.c | 131 if (lt->tm_year < gmt.tm_year) 133 else if (lt->tm_year > gmt.tm_year)
|
/freebsd-11-stable/usr.bin/w/ |
H A D | pr_time.c | 72 tm.tm_year != tp.tm_year) {
|
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-cn3010-evb-hs5.c | 94 TM_CHECK(tms->tm_year < 0 || tms->tm_year > 200,"year"); 138 tms.tm_year = ((reg[5] & 0x80) ? 100 : 0) + bcd2bin(reg[6]); 176 if (tms.tm_year >= 100) /* Set century bit*/ 180 reg[6] = bin2bcd(tms.tm_year % 100);
|
/freebsd-11-stable/contrib/file/src/ |
H A D | cdf_time.c | 121 tm.tm_year = CAST(int, CDF_BASE_YEAR + (t / 365)); 123 rdays = cdf_getdays(tm.tm_year); 125 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t)); 126 tm.tm_mon = cdf_getmonth(tm.tm_year, CAST(int, t)); 136 tm.tm_year -= 1900;
|
/freebsd-11-stable/bin/date/ |
H A D | vary.c | 62 while ((ret = mktime(t)) == -1 && t->tm_year > 68 && t->tm_year < 138) 109 year = t->tm_year + 1900; 132 t->tm_year += val; 135 t->tm_year -= val; 138 t->tm_year = val; 139 if (t->tm_year < 69) 140 t->tm_year += 100; /* as per date.c */ 141 else if (t->tm_year > 1900) 142 t->tm_year [all...] |
/freebsd-11-stable/crypto/openssl/crypto/asn1/ |
H A D | a_utctm.c | 152 tm->tm_year = n < 50 ? n + 100 : n; 259 if ((ts->tm_year < 50) || (ts->tm_year >= 150)) 274 BIO_snprintf(p, len, "%02d%02d%02d%02d%02d%02dZ", ts->tm_year % 100, 323 tm.tm_year = g2(s->data); 324 if (tm.tm_year < 50) 325 tm.tm_year += 100;
|