Searched refs:TM_YEAR_BASE (Results 1 - 12 of 12) sorted by relevance

/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dstrptime.c38 #define TM_YEAR_BASE 1900 /* from tzfile.h */ macro
76 century = TM_YEAR_BASE;
331 tm->tm_year = i - TM_YEAR_BASE;
363 if (century == TM_YEAR_BASE) {
365 tm->tm_year = relyear + 2000 - TM_YEAR_BASE;
367 tm->tm_year = relyear + 1900 - TM_YEAR_BASE;
369 tm->tm_year = relyear + century - TM_YEAR_BASE;
/freebsd-11-stable/contrib/tzcode/stdtime/
H A Dtzfile.h163 #define TM_YEAR_BASE 1900 macro
H A Dlocaltime.c1697 if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE))
1867 ** It is converted back to an offset from TM_YEAR_BASE later.
1869 if (long_increment_overflow(&y, TM_YEAR_BASE))
1894 if (long_increment_overflow(&y, -TM_YEAR_BASE))
1904 else if (y + TM_YEAR_BASE < EPOCH_YEAR) {
/freebsd-11-stable/contrib/unbound/compat/
H A Dgmtime_r.c28 #define TM_YEAR_BASE 1900 macro
91 tmp->tm_year = y - TM_YEAR_BASE;
H A Dstrptime.c48 #define TM_YEAR_BASE 1900 macro
167 tm->tm_year = ret*100 - TM_YEAR_BASE;
323 tm->tm_year = ret - TM_YEAR_BASE;
/freebsd-11-stable/bin/date/
H A Ddate.c62 #ifndef TM_YEAR_BASE
63 #define TM_YEAR_BASE 1900 macro
254 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE;
263 lt->tm_year += 2000 - TM_YEAR_BASE;
265 lt->tm_year += 1900 - TM_YEAR_BASE;
/freebsd-11-stable/contrib/ntp/libntp/
H A Dmktime.c88 #define TM_YEAR_BASE 1900 macro
205 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)];
209 TM_YEAR_BASE)][yourtm.tm_mon];
/freebsd-11-stable/lib/libc/stdtime/
H A Dstrptime.c150 tm->tm_year = i * 100 - TM_YEAR_BASE;
528 i -= TM_YEAR_BASE;
616 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
621 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE);
650 TM_YEAR_BASE)][i])
656 TM_YEAR_BASE)][12];
664 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)]
H A Dstrftime.c180 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0,
381 base = TM_YEAR_BASE;
475 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1,
479 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1,
/freebsd-11-stable/contrib/tzcode/zic/
H A Dzdump.c79 #ifndef TM_YEAR_BASE
80 #define TM_YEAR_BASE 1900 macro
81 #endif /* !defined TM_YEAR_BASE */
532 result += DAYSPERNYEAR + isleap_sum(tmy, TM_YEAR_BASE);
654 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
655 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR +
/freebsd-11-stable/contrib/diff/lib/
H A Dstrftime.c116 #define TM_YEAR_BASE 1900 macro
281 int a4 = (a->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (a->tm_year & 3);
282 int b4 = (b->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (b->tm_year & 3);
794 int year = tp->tm_year + TM_YEAR_BASE;
1118 int year = tp->tm_year + TM_YEAR_BASE;
1188 DO_NUMBER (1, tp->tm_year + TM_YEAR_BASE);
/freebsd-11-stable/contrib/tnftp/
H A Dtnftp.h470 #define TM_YEAR_BASE 1900 macro

Completed in 107 milliseconds