Home
last modified time | relevance | path

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

/freebsd/contrib/tzcode/
H A Dasctime.c78 long long_TM_YEAR_BASE = TM_YEAR_BASE; in asctime_r()
115 if ((year <= LONG_MAX - TM_YEAR_BASE in asctime_r()
117 ((-999 - TM_YEAR_BASE <= year in asctime_r()
118 && year <= 9999 - TM_YEAR_BASE) in asctime_r()
126 year / 10 + TM_YEAR_BASE / 10, in asctime_r()
H A Dstrftime.c266 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
459 base = TM_YEAR_BASE; in _fmt()
554 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
559 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
H A Dlocaltime.c2406 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in timesub()
2411 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) { in timesub()
2413 tmp->tm_year = signed_y - TM_YEAR_BASE; in timesub()
2414 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y) in timesub()
2415 && y - TM_YEAR_BASE <= INT_MAX) in timesub()
2416 tmp->tm_year = y - TM_YEAR_BASE; in timesub()
2430 - leaps_thru_end_of(TM_YEAR_BASE - 1) in timesub()
2657 y += TM_YEAR_BASE; in time2sub()
2681 if (ckd_add(&yourtm.tm_year, y, -TM_YEAR_BASE)) in time2sub()
2684 y -= TM_YEAR_BASE; in time2sub()
[all …]
H A Dzdump.c770 result += DAYSPERNYEAR + isleap_sum(tmy, TM_YEAR_BASE); in delta_nonneg()
797 yday += 365 + isleap_sum(b->tm_year, TM_YEAR_BASE); in adjusted_yday()
1242 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
1243 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
H A Dprivate.h1154 TM_YEAR_BASE = 1900, enumerator
H A DNEWS5813 Avoid overflow problems when TM_YEAR_BASE is added to an integer.
/freebsd/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/bin/date/
H A Ddate.c51 #ifndef TM_YEAR_BASE
52 #define TM_YEAR_BASE 1900 macro
302 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE; in setthetime()
311 lt->tm_year += 2000 - TM_YEAR_BASE; in setthetime()
313 lt->tm_year += 1900 - TM_YEAR_BASE; in setthetime()
/freebsd/lib/libc/stdtime/
H A Dstrptime.c616 year += century * 100 - TM_YEAR_BASE; in _strptime()
624 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1); in _strptime()
629 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE); in _strptime()
658 TM_YEAR_BASE)][i]) in _strptime()
664 TM_YEAR_BASE)][12]; in _strptime()
672 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime()
677 wday_offset = first_wday_of(tm->tm_year + TM_YEAR_BASE); in _strptime()
H A Dstrftime.c167 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt()
368 base = TM_YEAR_BASE; in _fmt()
462 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1, in _fmt()
466 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1, in _fmt()
/freebsd/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/crypto/krb5/src/lib/krb5/krb/
H A Dstrptime.c319 tm->tm_year = i - TM_YEAR_BASE;
333 tm->tm_year = i + 2000 - TM_YEAR_BASE;
335 tm->tm_year = i + 1900 - TM_YEAR_BASE;
H A Dstr_conv.c315 #undef TM_YEAR_BASE
316 #define TM_YEAR_BASE 1900 macro
/freebsd/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/contrib/tnftp/
H A Dtnftp.h470 #define TM_YEAR_BASE 1900 macro
H A DChangeLog1374 "%04d", tm->tm_year + TM_YEAR_BASE
/freebsd/contrib/tzdata/
H A DNEWS5813 Avoid overflow problems when TM_YEAR_BASE is added to an integer.