| /mirbsd/src/usr.bin/calendar/ |
| D | day.c | 165 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/ |
| D | touch.c | 202 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/ |
| D | strptime.c | 87 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()
|
| D | zdump.c | 91 #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);
|
| D | strftime.c | 218 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,
|
| D | tzfile.h | 158 #define TM_YEAR_BASE 1900 macro
|
| D | localtime.c | 1436 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) {
|
| D | zic.c | 698 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/ |
| D | strftime.c | 130 #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 …]
|
| D | getdate.c | 262 #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/ |
| D | date.c | 199 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/ |
| D | sel_subs.c | 563 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()
|
| D | pax.h | 301 #define TM_YEAR_BASE 1900 macro
|
| /mirbsd/src/usr.bin/at/ |
| D | parsetime.c | 445 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/ |
| D | tzfile.h | 138 #define TM_YEAR_BASE 1900 macro
|
| /mirbsd/src/usr.bin/cal/ |
| D | cal.c | 171 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/ |
| D | util.c | 621 timebuf.tm_year = yy - TM_YEAR_BASE; in remotemodtime()
|
| /mirbsd/src/libexec/ftpd/ |
| D | ftpcmd.y | 633 TM_YEAR_BASE + t->tm_year,
|