Home
last modified time | relevance | path

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

/mirbsd/src/usr.bin/calendar/
Dday.c165 if (isleap(tp->tm_year + TM_YEAR_BASE))
228 tm.tm_year += 2000 - TM_YEAR_BASE;
230 tm.tm_year += 1900 - TM_YEAR_BASE;
231 else if (tm.tm_year > TM_YEAR_BASE)
232 tm.tm_year -= TM_YEAR_BASE;
444 tmtmp.tm_year + TM_YEAR_BASE + 1);
447 tmtmp.tm_year + TM_YEAR_BASE);
453 if ((v2 += isleap(tp->tm_year + TM_YEAR_BASE) ? 366 : 365)
529 tmtmp.tm_year + TM_YEAR_BASE);
540 TM_YEAR_BASE) + vwd;
[all …]
/mirbsd/src/usr.bin/touch/
Dtouch.c202 t->tm_year = ATOI2(arg) * 100 - TM_YEAR_BASE; in stime_arg1()
212 t->tm_year = yearset + 2000 - TM_YEAR_BASE; in stime_arg1()
214 t->tm_year = yearset + 1900 - TM_YEAR_BASE; in stime_arg1()
255 t->tm_year = year + 2000 - TM_YEAR_BASE; in stime_arg2()
257 t->tm_year = year + 1900 - TM_YEAR_BASE; in stime_arg2()
/mirbsd/src/lib/libc/time/
Dstrptime.c87 century = TM_YEAR_BASE; in _strptime()
423 tm->tm_year = i - TM_YEAR_BASE; in _strptime()
455 if (century == TM_YEAR_BASE) { in _strptime()
457 tm->tm_year = relyear + 2000 - TM_YEAR_BASE; in _strptime()
459 tm->tm_year = relyear + 1900 - TM_YEAR_BASE; in _strptime()
461 tm->tm_year = relyear + century - TM_YEAR_BASE; in _strptime()
Dzdump.c91 #ifndef TM_YEAR_BASE
92 #define TM_YEAR_BASE 1900 macro
552 result += DAYSPERNYEAR + isleap_sum(tmy, TM_YEAR_BASE);
652 #ifndef TM_YEAR_BASE
653 #define TM_YEAR_BASE 1900 macro
680 (int64_t)timeptr->tm_year + (long long) TM_YEAR_BASE,
684 (int64_t)timeptr->tm_year + (long long) TM_YEAR_BASE);
Dstrftime.c218 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0,
415 base = TM_YEAR_BASE;
508 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1,
512 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1,
Dtzfile.h158 #define TM_YEAR_BASE 1900 macro
Dlocaltime.c1436 if (long_increment_overflow(&y, (time_t)TM_YEAR_BASE))
1461 if (long_increment_overflow(&y, (time_t)-TM_YEAR_BASE))
1468 else if (y + TM_YEAR_BASE < EPOCH_YEAR) {
Dzic.c698 min_year = TM_YEAR_BASE + gmtime(&t)->tm_year; in setboundaries()
700 max_year = TM_YEAR_BASE + gmtime(&t)->tm_year; in setboundaries()
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dstrftime.c130 #define TM_YEAR_BASE 1900 macro
295 int a4 = SHR (a->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (a->tm_year & 3); in tm_diff()
296 int b4 = SHR (b->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (b->tm_year & 3); in tm_diff()
817 int century = tp->tm_year / 100 + TM_YEAR_BASE / 100; in my_strftime()
819 DO_SIGNED_NUMBER (2, tp->tm_year < - TM_YEAR_BASE, century); in my_strftime()
1145 ? TM_YEAR_BASE % 400 in my_strftime()
1146 : TM_YEAR_BASE % 400 - 400)); in my_strftime()
1176 : tp->tm_year < -TM_YEAR_BASE - year_adjust in my_strftime()
1182 DO_SIGNED_NUMBER (4, tp->tm_year < -TM_YEAR_BASE - year_adjust, in my_strftime()
1183 (tp->tm_year + (unsigned int) TM_YEAR_BASE in my_strftime()
[all …]
Dgetdate.c262 #define TM_YEAR_BASE 1900 macro
2630 int a4 = SHR (a->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (a->tm_year & 3); in tm_diff()
2631 int b4 = SHR (b->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (b->tm_year & 3); in tm_diff()
3006 pc.year.value += TM_YEAR_BASE; in get_date()
3102 tm.tm_year = to_year (pc.year) - TM_YEAR_BASE; in get_date()
/mirbsd/src/bin/date/
Ddate.c199 lt->tm_year = bigyear * 100 - TM_YEAR_BASE; in setthetime()
208 lt->tm_year += (2000 - TM_YEAR_BASE); in setthetime()
210 lt->tm_year += (1900 - TM_YEAR_BASE); in setthetime()
/mirbsd/src/bin/pax/
Dsel_subs.c563 lt->tm_year = (bigyear * 100) - TM_YEAR_BASE; in str_sec()
572 lt->tm_year += (2000 - TM_YEAR_BASE); in str_sec()
574 lt->tm_year += (1900 - TM_YEAR_BASE); in str_sec()
Dpax.h301 #define TM_YEAR_BASE 1900 macro
/mirbsd/src/usr.bin/at/
Dparsetime.c445 if (year >= TM_YEAR_BASE) in assign_date()
446 year -= TM_YEAR_BASE; /* convert from 4 digit year */ in assign_date()
568 year = (mon % 10000) - TM_YEAR_BASE; in month()
/mirbsd/src/include/
Dtzfile.h138 #define TM_YEAR_BASE 1900 macro
/mirbsd/src/usr.bin/cal/
Dcal.c171 year = local_time->tm_year + TM_YEAR_BASE; in main()
180 year = local_time->tm_year + TM_YEAR_BASE; in main()
/mirbsd/src/usr.bin/ftp/
Dutil.c621 timebuf.tm_year = yy - TM_YEAR_BASE; in remotemodtime()
/mirbsd/src/libexec/ftpd/
Dftpcmd.y633 TM_YEAR_BASE + t->tm_year,