/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/ntpd/ |
H A D | check_y2k.c | 113 Days ( int Year ) /* return number of days since year "0" */ 129 static int year0 = 1900; /* sarting year for NTP time */ 130 static int yearend; /* ending year we test for NTP time. 132 **year in which NTP time overflows. 141 #define Error(year) if ( (year)>=2036 && LocalTime.tm_year < 110 ) \ 149 int year; local 158 year = ( sizeof( u_long ) > 4 ) /* save max span using year as temp */ 165 * fail ONLY beyond year 203 330 int year; member in struct:ParseTime [all...] |
/netbsd-6-1-5-RELEASE/share/zoneinfo/ |
H A D | leapseconds.awk | 48 year = $6 56 year--; 63 printf "Leap\t%s\t%s\t%s\t%s\tS\n", year, month, day, sign
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/ |
H A D | 8.cc | 39 int year; local 43 istrm >> setw(5) >> month >> sep >> year; local 46 VERIFY( year == 2001 );
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/ |
H A D | 8.cc | 39 int year; local 43 istrm >> setw(5) >> month >> sep >> year; local 46 VERIFY( year == 2001 );
|
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/ |
H A D | 8.cc | 39 int year; local 43 istrm >> setw(5) >> month >> sep >> year; local 46 VERIFY( year == 2001 );
|
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/ |
H A D | 8.cc | 39 int year; local 43 istrm >> setw(5) >> month >> sep >> year; local 46 VERIFY( year == 2001 );
|
/netbsd-6-1-5-RELEASE/dist/pdisk/ |
H A D | pdisk.r | 44 VERSION, $$year, $$month, $$day, 45 $$year 54 $$year
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/libntp/ |
H A D | uglydate.c | 25 int year; local 36 year = 0; 42 year = tm->tm_year; 43 while (year >= 100) 44 year -= 100; 47 "%17s %02d:%03d:%02d:%02d:%02d.%03ld", timep, year,
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/execute/ |
H A D | 950628-1.c | 4 short year; member in struct:__anon5552 14 now.year = 4; 28 if (f ().hours != 1 || f ().day != 2 || f ().month != 3 || f ().year != 4)
|
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/execute/ |
H A D | 950628-1.c | 4 short year; member in struct:__anon3807 14 now.year = 4; 28 if (f ().hours != 1 || f ().day != 2 || f ().month != 3 || f ().year != 4)
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 930510-1.c | 7 f (janfirst, year, rulep, offset) 9 __const int year;
|
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 930510-1.c | 7 f (janfirst, year, rulep, offset) 9 __const int year;
|
/netbsd-6-1-5-RELEASE/sys/dev/ |
H A D | clock_subr.c | 55 static inline int leapyear(int year); 67 * ( ((year % 4) == 0 && 68 * (year % 100) != 0) || 69 * ((year % 400) == 0) ) 73 leapyear(int year) argument 77 if ((year & 3) == 0) { 79 if ((year % 100) == 0) { 81 if ((year % 400) == 0) 92 int i, year, days; local 94 year [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/cal/ |
H A D | cal.c | 105 /* leap year -- account for gregorian reformation at some point */ 107 ((yr) <= reform->year ? j_leap_year((yr), 3, 1) : \ 133 * ruler of some power decided that he wanted the number of the year 145 ((yr) > reform->year ? ((yr) / 100) - (reform->year / 100) : 0) 149 ((yr) > reform->year ? ((yr) / 400) - (reform->year / 400) : 0) 151 /* number of leap years between year 1 and this year, not inclusive */ 157 int ambiguity, year, mont member in struct:reform 222 long month, year; local 341 monthrange(int month, int year, int before, int after, int yearly) argument 487 day_array(int month, int year, int *days) argument 526 day_in_year(int day, int month, int year) argument 543 day_in_week(int day, int month, int year) argument 667 int year, month, date; local 810 reform_day_array(int month, int year, int *done, int *date, int *diw, int *diy, int *scal, int *jcal) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/mvmeppc/stand/libsa/ |
H A D | clock.c | 32 chiptotime(int sec, int min, int hour, int day, int mon, int year) argument 41 year = FROMBCD(year) + YEAR0; 42 if (year < 70) 43 year = 70; 46 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) 49 for (yr = 70; yr < year; yr++)
|
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/stand/libsa/ |
H A D | chiptotime.c | 31 chiptotime(int sec, int min, int hour, int day, int mon, int year) argument 40 year = FROMBCD(year) + YEAR0; 41 if (year < 70) 42 year = 70; 45 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) 48 for (yr = 70; yr < year; yr++)
|
H A D | clock.c | 31 chiptotime(int sec, int min, int hour, int day, int mon, int year) argument 40 year = FROMBCD(year) + YEAR0; 41 if (year < 70) 42 year = 70; 45 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) 48 for (yr = 70; yr < year; yr++)
|
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/stand/sboot/ |
H A D | clock.c | 105 int sec, min, hour, day, mon, year; local 113 year = cl->cl_year; 115 return chiptotime(sec, min, hour, day, mon, year);
|
/netbsd-6-1-5-RELEASE/sys/arch/hpcmips/vr/ |
H A D | rtcreg.h | 40 #define EPOCHYEAR 1850 /* XXX */ /* WINCE epoch year */ 42 #define EPOCHMONTH 1 /* WINCE epoch month of year */ 45 #define LEAPYEAR4(year) ((((year) % 4) == 0 && ((year) % 100) != 0) || ((year%400)) == 0) 46 #define LEAPYEAR2(year) (((year) % 4) == 0)
|
/netbsd-6-1-5-RELEASE/usr.sbin/isdn/isdnd/ |
H A D | holiday.c | 38 * day.month.year optional comment (different day every year) or 39 * day.month optional comment (same day every year) 55 int year; member in struct:holiday 76 int day, month, year; local 94 ret = sscanf(buffer, "%d.%d.%d", &day, &month, &year); 104 year = 0; 113 if (year) 115 DBGL(DL_MSG, (logit(LL_DBG, "init_holidays: add %d.%d.%d", day, month, year))); 124 newh->year [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/ic/ |
H A D | mc146818.c | 82 int s, timeout, cent, year; local 108 year = FROMREG((*sc->sc_mcread)(sc, MC_YEAR)); 111 year += cent * 100; 116 year += sc->sc_year0; 117 if (year < POSIX_BASE_YEAR && 119 year += 100; 120 dt->dt_year = year; 138 int s, cent, year; local 162 year = dt->dt_year - sc->sc_year0; 164 cent = year / 10 [all...] |
H A D | intersil7170.c | 81 int year; local 98 year = bus_space_read_1(bt, bh, INTERSIL_IYEAR); 106 year += sc->sc_year0; 107 if (year < POSIX_BASE_YEAR && 109 year += 100; 111 dt->dt_year = year; 126 int year; local 129 year = dt->dt_year - sc->sc_year0; 130 if (year > 99 && (sc->sc_flag & INTERSIL7170_NO_CENT_ADJUST) == 0) 131 year [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/mac68k/mac68k/ |
H A D | pram.c | 61 long year,month,day,hour,minute,seconds,i,dayperyear; local 63 year=1904; 75 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) 89 year++; 124 sprintf(s,"%s %ld, %ld %ld:%ld:%ld",monstr[month],day,year,hour,minute,seconds);
|
/netbsd-6-1-5-RELEASE/lib/libc/time/ |
H A D | asctime.c | 48 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year, 57 ** For years that are more than four digits we put extra spaces before the year 59 ** a digit within a year and truncating the year (operating on the assumption 110 char year[INT_STRLEN_MAXIMUM(int) + 2]; local 124 ** Use strftime's %Y to generate the year, to avoid overflow problems 129 (void) strftime(year, sizeof year, "%Y", timeptr); 132 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), 136 year); [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/hp300/stand/common/ |
H A D | clock.c | 63 #define leapyear(year) ((year) % 4 == 0) 98 int year, month, day, hour, min, sec; local 111 year = bbc_to_decimal(12, 11) + 1900; 112 if (year < STARTOFTIME) 113 year += 100; 121 for (i = STARTOFTIME; i < year; i++) 123 if (leapyear(year) && month > FEBRUARY)
|