HomeSort by: relevance | last modified time | path
    Searched refs:TM_YEAR_BASE (Results 1 - 17 of 17) sorted by relevancy

  /src/lib/libc/time/
asctime.c 98 long long_TM_YEAR_BASE = TM_YEAR_BASE;
133 Also, avoid overflow when formatting tm_year + TM_YEAR_BASE. */
135 if ((size_t)(year <= INT_MAX - TM_YEAR_BASE
137 ((-999 - TM_YEAR_BASE <= year
138 && year <= 9999 - TM_YEAR_BASE)
146 year / 10 + TM_YEAR_BASE / 10,
strptime.c 278 i = i * 100 - TM_YEAR_BASE;
432 i = TM_YEAR_BASE; /* just for data sanity... */
434 tm->tm_year = i - TM_YEAR_BASE;
449 i = i + 2000 - TM_YEAR_BASE;
451 i = i + 1900 - TM_YEAR_BASE;
673 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
685 first_wday_of(tm->tm_year + TM_YEAR_BASE) +
698 isleap = isleap_sum(tm->tm_year, TM_YEAR_BASE);
712 isleap = isleap_sum(tm->tm_year, TM_YEAR_BASE);
strftime.c 289 pt = _yconv(t->tm_year, TM_YEAR_BASE,
518 base = TM_YEAR_BASE;
619 pt = _yconv(t->tm_year, TM_YEAR_BASE,
624 pt = _yconv(t->tm_year, TM_YEAR_BASE,
localtime.c 2550 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) {
2555 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) {
2557 tmp->tm_year = signed_y - TM_YEAR_BASE;
2558 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y)
2559 && y - TM_YEAR_BASE <= INT_MAX)
2560 tmp->tm_year = (int)(y - TM_YEAR_BASE);
2574 - leaps_thru_end_of(TM_YEAR_BASE - 1)
2767 ** It is converted back to an offset from TM_YEAR_BASE later.
2769 y += TM_YEAR_BASE;
2794 if (ckd_add(&yourtm.tm_year, y, -TM_YEAR_BASE))
    [all...]
zdump.c 764 result += DAYSPERNYEAR + isleap_sum(tmy, TM_YEAR_BASE);
791 yday += 365 + isleap_sum(b->tm_year, TM_YEAR_BASE);
1236 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
1237 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR +
private.h 1166 #ifndef TM_YEAR_BASE
1168 TM_YEAR_BASE = 1900,
  /src/usr.bin/at/
stime.c 81 t->tm_year = ATOI2(arg) * 100 - TM_YEAR_BASE;
89 t->tm_year = conv_2dig_year(yearset) - TM_YEAR_BASE;
parsetime.c 427 if (year >= TM_YEAR_BASE)
428 tm->tm_year = year - TM_YEAR_BASE;
433 tm->tm_year = conv_2dig_year(year) - TM_YEAR_BASE;
512 assign_date(tm, mday, tm->tm_mon, tm->tm_year + TM_YEAR_BASE);
  /src/include/
tzfile.h 162 #define TM_YEAR_BASE 1900
  /src/usr.bin/touch/
touch.c 273 t->tm_year = ATOI2(arg) * 100 - TM_YEAR_BASE;
283 LOW_YEAR_CENTURY - TM_YEAR_BASE;
286 HIGH_YEAR_CENTURY - TM_YEAR_BASE;
334 t->tm_year = year + LOW_YEAR_CENTURY - TM_YEAR_BASE;
336 t->tm_year = year + HIGH_YEAR_CENTURY - TM_YEAR_BASE;
  /src/bin/pax/
sel_subs.c 580 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE;
589 lt->tm_year = yearset + 2000 - TM_YEAR_BASE;
591 lt->tm_year = yearset + 1900 - TM_YEAR_BASE;
  /src/bin/date/
date.c 429 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE;
440 lt->tm_year = yearset + 2000 - TM_YEAR_BASE;
442 lt->tm_year = yearset + 1900 - TM_YEAR_BASE;
474 if (isleap(lt->tm_year + TM_YEAR_BASE)) {
  /src/usr.bin/calendar/
calendar.c 246 if (isleap(tp->tm_year + TM_YEAR_BASE)) {
704 ttm.tm_year = ATOI2(ds) * 100 - TM_YEAR_BASE;
710 ttm.tm_year += 2000 - TM_YEAR_BASE;
712 ttm.tm_year += 1900 - TM_YEAR_BASE;
  /src/sbin/shutdown/
shutdown.c 481 lt->tm_year = ATOI2(timearg) * 100 - TM_YEAR_BASE;
490 lt->tm_year = yearset + 2100 - TM_YEAR_BASE;
492 lt->tm_year = yearset + 2000 - TM_YEAR_BASE;
  /src/usr.bin/cal/
cal.c 311 year = local_time->tm_year + TM_YEAR_BASE;
500 tm->tm_year += TM_YEAR_BASE;
  /src/libexec/ftpd/
cmds.c 594 TM_YEAR_BASE + t->tm_year,
ftpcmd.y 839 TM_YEAR_BASE + t->tm_year,

Completed in 32 milliseconds