/freebsd-10.0-release/bin/date/ |
H A D | vary.c | 107 int year; local 109 year = t->tm_year + 1900; 112 if (!(year % 400)) 114 else if (!(year % 100)) 116 else if (!(year % 4)) 160 val += 11 - t->tm_mon; /* early next year */ 162 val -= t->tm_mon + 1; /* later this year */ 177 val = 13 - val + t->tm_mon; /* later last year */ 179 val = t->tm_mon - val + 1; /* early this year */
|
/freebsd-10.0-release/contrib/amd/doc/ |
H A D | texinfo.tex | 2224 \space\number\year}
|
/freebsd-10.0-release/contrib/apr-util/test/ |
H A D | testdate.c | 144 int year, i; local 150 for (year = 1970; year < 2038; ++year) { 151 secstodate = year2secs[year - 1970] + offset;
|
/freebsd-10.0-release/contrib/apr/time/unix/ |
H A D | time.c | 140 apr_time_t year = xt->tm_year; local 145 /* shift new year to 1st March in order to make leap year calc easy */ 148 year--; 152 days = year * 365 + year / 4 - year / 100 + (year / 100 + 3) / 4; 264 tmpdate.tm_year = os2date.year + 80; 284 os2date->year [all...] |
/freebsd-10.0-release/contrib/binutils/bfd/ |
H A D | ieee.c | 2946 INTn (year);
|
/freebsd-10.0-release/contrib/dialog/ |
H A D | calendar.c | 34 #define HDR_HIGH 1 /* height of cells with month/year */ 37 /* two more lines: titles for day-of-week and month/year boxes */ 149 int year = current->tm_year; local 155 year -= 1; 159 year += 1; 163 result += ((year % 4) == 0); 170 int year = current->tm_year + 1900 + offset; local 172 return ((year % 4) == 0) ? 366 : 365; 290 * Draw the month-of-year selection box 314 * Draw the year selectio 319 int year = current->tm_year + 1900; local 387 dialog_calendar(const char *title, const char *subtitle, int height, int width, int day, int month, int year) argument [all...] |
/freebsd-10.0-release/contrib/diff/lib/ |
H A D | strftime.c | 119 /* Nonzero if YEAR is a leap year (every 4 years, 121 # define __isleap(year) \ 122 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) 278 /* Compute intervening leap days correctly even if year is negative. 300 year to the year day YDAY with week day WDAY. ISO weeks start on 301 Monday; the first ISO week has the year's first Thursday. YDAY may 794 int year local 1118 int year = tp->tm_year + TM_YEAR_BASE; local [all...] |
/freebsd-10.0-release/contrib/file/ |
H A D | cdf_time.c | 49 * Return the number of days between jan 01 1601 and jan 01 of year. 52 cdf_getdays(int year) argument 57 for (y = CDF_BASE_YEAR; y < year; y++) 67 cdf_getday(int year, int days) argument 72 int sub = mdays[m] + (m == 1 && isleap(year)); 84 cdf_getmonth(int year, int days) argument 90 if (m == 1 && isleap(year))
|
/freebsd-10.0-release/contrib/gcc/doc/include/ |
H A D | texinfo.tex | 2387 \space\number\year}
|
/freebsd-10.0-release/contrib/groff/doc/ |
H A D | texinfo.tex | 2286 \space\number\year}
|
/freebsd-10.0-release/contrib/ldns/ |
H A D | util.c | 173 is_leap_year(int year) argument 175 return LDNS_MOD(year, 4) == 0 && (LDNS_MOD(year, 100) != 0 176 || LDNS_MOD(year, 400) == 0); 195 int year = 1900 + tm->tm_year; local 196 time_t days = 365 * ((time_t) year - 1970) + leap_days(1970, year); 205 if (tm->tm_mon > 1 && is_leap_year(year)) { 228 int year = 1970; local 231 while (days < 0 || days >= (int64_t) (is_leap_year(year) [all...] |
/freebsd-10.0-release/contrib/ntp/include/ |
H A D | mbg_gps166.h | 202 short year; /* 0..9999 */ member in struct:__anon3745 328 /* If the year in tzdl.tmon and tzdl.tm_off is or'ed with that constant, */ 329 /* the receiver automatically generates daylight saving year by year. */ 339 /* tm_on = first Sunday from March 25, 02:00:00h ( year |= DL_AUTO_FLAG ) */ 340 /* tm_off = first Sunday from Sept 24, 03:00:00h ( year |= DL_AUTO_FLAG ) */
|
H A D | ntp.h | 24 #define YEAR_PIVOT 98 /* 97/98: years < this are year 2000+ 25 * FYI: official UNIX pivot year is 29 * Number of Days since 1 BC Gregorian to 1 January of given year 31 #define julian0(year) (((year) * 365 ) + ((year) > 0 ? (((year) + 3) \ 32 / 4 - ((year - 1) / 100) + ((year - 1) / \ 36 * Number of days since start of NTP time to 1 January of given year [all...] |
H A D | ntp_calendar.h | 10 u_short year; /* year (A.D.) */ member in struct:calendar 11 u_short yearday; /* day of year, 1 = January 1 */ 37 * We deal in a 4 year cycle starting at March 1, 1900. We assume 44 #define DAYSPERYEAR (365) /* days per year */ 47 #define SECSPERYEAR (365 * SECSPERDAY) /* regular year */ 48 #define SECSPERLEAPYEAR (366 * SECSPERDAY) /* leap year */ 50 #define MAR1900 ((JAN+FEB) * SECSPERDAY) /* no leap year in 1900 */ 94 * The Gregorian calendar is based on a 400 year cycle. This is the number 100 * Days in a normal 100 year lea [all...] |
H A D | ntp_datum.h | 20 unsigned short year; member in struct:vmedate
|
H A D | ntp_refclock.h | 190 int year; /* year of eternity */ member in struct:refclockproc 191 int day; /* day of year */ 196 u_long yearstart; /* beginning of year */
|
H A D | parse.h | 300 long year; member in struct:clocktime
|
/freebsd-10.0-release/contrib/ntp/libntp/ |
H A D | caljulian.c | 45 u_long d4; /* Days into a 4-year cycle */ 48 u_long n4; /* # of 4-year cycles */ 49 u_long n1; /* # of years into a leap year */ 75 * Calculate the year and year-of-day 78 jt->year = (u_short)(400*n400 + 100*n100 + n4*4 + n1); 83 * If the cycle year ever comes out to 4, it must be December 31st 84 * of a leap year. 98 jt->year++; 106 if (jt->month == 1 && is_leapyear(jt->year)) [all...] |
H A D | caltontp.c | 23 prior_years = jt->year-1; 24 ace_days = jt->yearday /* days this year */
|
H A D | uglydate.c | 23 int year; local 34 year = 0; 40 year = tm->tm_year; 41 while (year >= 100) 42 year -= 100; 45 timep, year, tm->tm_yday, tm->tm_hour, tm->tm_min,
|
/freebsd-10.0-release/contrib/ntp/libparse/ |
H A D | clk_computime.c | 83 {8, 2}, {5, 2}, {2, 2}, /* day, month, year */ 127 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
|
H A D | clk_dcf7000.c | 105 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
|
H A D | clk_hopf6021.c | 153 STOI(O_YEAR, &clock_time->year) ||
|
H A D | clk_meinberg.c | 74 * <dd>,<mm>,<yy> = day, month, year(2 digits!!) 97 * <dd>,<mm>,<yy> = day, month, year(2 digits!!) 124 * <dd>,<mm>,<yy> = day, month, year(2 digits!!) 301 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year, 481 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
|
H A D | clk_rawdcf.c | 284 clock_time->year = ext_bf(buffer, DCF_Y10, dcfprm->zerobits); 285 clock_time->year = TIMES10(clock_time->year) + ext_bf(buffer, DCF_Y1, dcfprm->zerobits); 313 (int)clock_time->hour, (int)clock_time->minute, (int)clock_time->day, (int)clock_time->month,(int) clock_time->year,
|