Home
last modified time | relevance | path

Searched refs:TM_YEAR_BASE (Results 1 – 15 of 15) sorted by relevance

/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Dstrptime.c38 #define TM_YEAR_BASE 1900 /* from tzfile.h */ macro
76 century = TM_YEAR_BASE; in _strptime()
331 tm->tm_year = i - TM_YEAR_BASE; in _strptime()
363 if (century == TM_YEAR_BASE) { in _strptime()
365 tm->tm_year = relyear + 2000 - TM_YEAR_BASE; in _strptime()
367 tm->tm_year = relyear + 1900 - TM_YEAR_BASE; in _strptime()
369 tm->tm_year = relyear + century - TM_YEAR_BASE; in _strptime()
/freebsd-13.1/bin/date/
H A Ddate.c64 #ifndef TM_YEAR_BASE
65 #define TM_YEAR_BASE 1900 macro
300 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE; in setthetime()
309 lt->tm_year += 2000 - TM_YEAR_BASE; in setthetime()
311 lt->tm_year += 1900 - TM_YEAR_BASE; in setthetime()
/freebsd-13.1/contrib/unbound/compat/
H A Dstrptime.c48 #define TM_YEAR_BASE 1900 macro
167 tm->tm_year = ret*100 - TM_YEAR_BASE; in unbound_strptime()
323 tm->tm_year = ret - TM_YEAR_BASE; in unbound_strptime()
H A Dgmtime_r.c28 #define TM_YEAR_BASE 1900 macro
91 tmp->tm_year = y - TM_YEAR_BASE;
/freebsd-13.1/lib/libc/stdtime/
H A Dstrptime.c625 year += century * 100 - TM_YEAR_BASE; in _strptime()
633 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1); in _strptime()
638 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE); in _strptime()
667 TM_YEAR_BASE)][i]) in _strptime()
673 TM_YEAR_BASE)][12]; in _strptime()
681 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime()
H A Dstrftime.c180 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt()
381 base = TM_YEAR_BASE; in _fmt()
475 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1, in _fmt()
479 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1, in _fmt()
/freebsd-13.1/contrib/ntp/libntp/
H A Dmktime.c88 #define TM_YEAR_BASE 1900 macro
205 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)]; in time2()
209 TM_YEAR_BASE)][yourtm.tm_mon]; in time2()
/freebsd-13.1/contrib/tzcode/zic/
H A Dzdump.c79 #ifndef TM_YEAR_BASE
80 #define TM_YEAR_BASE 1900 macro
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-13.1/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); in tm_diff()
282 int b4 = (b->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (b->tm_year & 3); in tm_diff()
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-13.1/contrib/tzcode/stdtime/
H A Dtzfile.h163 #define TM_YEAR_BASE 1900 macro
H A Dlocaltime.c1685 if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE))
1857 if (long_increment_overflow(&y, TM_YEAR_BASE)) in time2sub()
1882 if (long_increment_overflow(&y, -TM_YEAR_BASE)) in time2sub()
1892 else if (y + TM_YEAR_BASE < EPOCH_YEAR) { in time2sub()
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dtzfile.h130 #define TM_YEAR_BASE 1900 macro
/freebsd-13.1/contrib/tnftp/
H A Dtnftp.h470 #define TM_YEAR_BASE 1900 macro
H A DChangeLog1374 "%04d", tm->tm_year + TM_YEAR_BASE
/freebsd-13.1/contrib/tzdata/
H A DNEWS5033 Avoid overflow problems when TM_YEAR_BASE is added to an integer.