Searched refs:year (Results 26 - 50 of 153) sorted by relevance

1234567

/freebsd-10.0-release/usr.bin/calendar/
H A Ddates.c39 int year; /* 19xx, 20xx, 21xx */ member in struct:cal_year
52 struct cal_year *year; /* points back */ member in struct:cal_month
63 struct cal_year *year; /* points back */ member in struct:cal_day
95 if (py->year == y + 1900)
105 py->year = y + 1900;
135 pm->year = py;
157 pd->year = py;
184 /* Same year, same month. Easy! */
190 * Same year, different month.
206 * Different year, differen
444 addtodate(struct event *e, int year, int month, int day) argument
[all...]
H A Devents.c41 event_add(int year, int month, int day, char *date, int var, char *txt, argument
68 addtodate(e, year, month, day);
H A Dpom.c84 pom(int year, double utcoffset, int *fms, int *nms) argument
90 fpom(year, utcoffset, ffms, fnms);
102 fpom(int year, double utcoffset, double *ffms, double *fnms) argument
120 tmd_today.tm_year = year - 1900;
127 tmd_tomorrow.tm_year = year - 1900;
158 yeardays = 1 + (isleap(year) ? DAYSPERLEAPYEAR : DAYSPERYEAR); /* reuse */
/freebsd-10.0-release/contrib/ntp/ntpd/
H A Drefclock_chronolog.c62 int year; /* Y2K-adjusted year */ member in struct:chronolog_unit
64 int month; /* month-of-year */
219 if (sscanf(pp->a_lastcode, "Y %d/%d/%d", &up->year,&up->month,&up->day))
222 * Y2K convert the 2-digit year
224 up->year = up->year >= 69 ? up->year : up->year + 100;
239 * means we have to do Y2K conversion on the 2-digit year;
[all...]
H A Drefclock_hopfser.c263 &pp->year);
275 (pp->year < 0) || (pp->year > 99)) {
283 pp->day = ymd2yd(pp->year,month,day);
289 if(pp->year < YEAR_PIVOT) { pp->year += 100; } /* < 98 */
290 pp->year += 1900;
301 pp->year,
H A Drefclock_jjy.c172 int year, month, day, hour, minute, second, msecond ; member in struct:jjyunit
516 pp->year = up->year ;
517 pp->day = ymd2yd ( up->year, up->month, up->day ) ;
531 pp->year -- ;
532 pp->day = ymd2yd ( pp->year, 12, 31 ) ;
538 up->year, up->month, up->day, up->hour, up->minute, up->second, up->msecond/100 ) ;
540 pp->year, pp->day, pp->hour, pp->minute, pp->second, (int)(pp->nsec/100000000) ) ;
550 up->year, up->month, up->day, up->hour, up->minute, up->second, up->msecond/100 ) ;
607 rc = sscanf ( pBuf, "%4d/%2d/%2d", &up->year,
[all...]
H A Drefclock_fg.c267 pp->year = BP1(2)*10 + BP2(2);
269 if(pp->year == 94)
280 if (pp->year < 99)
281 pp->year += 100;
283 pp->year += 1900;
317 sprintf(pp->a_lastcode, "%d %d %d %d %d", pp->year, pp->day, pp->hour, pp->minute, pp->second);
324 pp->year, pp->day, pp->hour, pp->minute, pp->second);
H A Drefclock_palisade.c68 /* Table to get from month to day of the year */
289 * unpack_date - get day and year from date
302 int day, mon, year; local
310 year = getint((u_char *) (dt + 2));
312 if ( !(year % 4) && ((year % 100) ||
313 (!(year % 100) && !(year%400)))
315 day ++; /* leap year and March or later */
431 pp->year
[all...]
H A Drefclock_leitch.c78 short year; member in struct:leitchunit
545 int year
548 if (year%4) { /* not a potential leap year */
551 if (year % 100) { /* is a leap year */
554 if (year % 400) {
578 leitch->year = ATOB(0)*10 + ATOB(1);
595 if ((days_per_year((leitch->year>90?1900:2000)+leitch->year)
[all...]
H A Drefclock_neoclock4x.c559 neol_atoi_len(&pp->a_lastcode[NEOCLOCK4X_OFFSET_YEAR], &pp->year, 2);
589 (pp->year < 0) || (pp->year > 99)) {
603 * if(pp->year < YEAR_PIVOT)
605 * pp->year += 100;
608 pp->year += 2000;
611 calc_utc = neol_mktime(pp->year, month, day, pp->hour, pp->minute, pp->second);
616 neol_localtime(calc_utc, &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second);
621 pp->day = ymd2yd(pp->year, month, day);
628 pp->year, mont
838 neol_mktime(int year, int mon, int day, int hour, int min, int sec) argument
858 neol_localtime(unsigned long utc, int* year, int* month, int* day, int* hour, int* min, int* sec) argument
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dstrptime.c155 * tm_year is relative this year
161 * Return TRUE iff `year' was a leap year.
165 is_leap_year (int year) argument
167 return (year % 4) == 0 && ((year % 100) != 0 || (year % 400) == 0);
171 * Return the weekday [0,6] (0 = Sunday) of the first day of `year'
175 first_day (int year) argument
179 for (; year > 197
[all...]
/freebsd-10.0-release/contrib/apr-util/test/
H A Dtestdate.c144 int year, i; local
150 for (year = 1970; year < 2038; ++year) {
151 secstodate = year2secs[year - 1970] + offset;
/freebsd-10.0-release/sys/mips/cavium/
H A Docteon_ds1337.c86 CT_CHECK(ct->year > 2037,"year");
134 ct.year = 2000 + bcd2bin(reg[6]);
136 ct.year = ((reg[5] & 0x80) ? 2000 : 1900) + bcd2bin(reg[6]);
180 if (ct.year >= 2000) /* Set century bit*/
184 reg[6] = bin2bcd(ct.year % 100);
/freebsd-10.0-release/contrib/wpa/src/utils/
H A Dos_win32.c50 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument
57 if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 ||
63 tm.tm_year = year - 1900;
103 tm->year = tm2->tm_year + 1900;
/freebsd-10.0-release/contrib/apr/time/unix/
H A Dtime.c140 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/sys/i386/xen/
H A Dclock.c398 int year, month; local
429 year = readrtc(RTC_YEAR) + readrtc(RTC_CENTURY) * 100;
431 year = readrtc(RTC_YEAR) + 1900;
432 if (year < 1970)
433 year += 100;
435 if (year < 1970) {
442 if ((month > 2) && LEAPYEAR(year))
445 for (y = 1970; y < year; y++)
511 /* Now we have the years in y and the day-of-the-year in tm */
/freebsd-10.0-release/usr.sbin/pw/
H A Dpsdate.c123 parse_datesub(char const * str, int *day, int *mon, int *year) argument
147 *year = atoi(str);
148 if (*year > 1900)
149 *year -= 1900;
150 else if (*year < 32)
151 *year += 100;
/freebsd-10.0-release/contrib/dialog/
H A Dcalendar.c34 #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/ntp/parseutil/
H A Dtestdcf.c58 long year; member in struct:clocktime
249 clock_time->year = ext_bf(buffer, DCF_Y10);
250 clock_time->year = TIMES10(clock_time->year) + ext_bf(buffer, DCF_Y1);
420 clock_time.year = 0;
461 clock_time.year = 0;
491 (int)clock_time.year,
/freebsd-10.0-release/crypto/openssl/crypto/asn1/
H A Da_utctm.c257 int year; local
280 year = g2(s->data);
281 if (year < 50)
282 year += 100;
283 return_cmp(year, tm->tm_year);
/freebsd-10.0-release/sys/dev/ppbus/
H A Dpcfclock.c208 int year; local
210 year = NR(buf, 14);
211 if (year < 70)
212 year += 100;
216 NR(buf, 10), NR(buf, 12), 1900 + year,
/freebsd-10.0-release/usr.bin/ncal/
H A Dncal.c122 /* Table used to print day of year and week numbers */
171 static void mkmonthr(int year, int month, int jd_flag,
173 static void mkmonthb(int year, int month, int jd_flag,
176 static void monthranger(int year, int m, int jd_flag,
178 static void monthrangeb(int year, int m, int jd_flag,
182 static void printeaster(int year, int julian, int orthodox);
198 int y = 0; /* year */
200 int flag_wholeyear = 0; /* user wants the whole year */
210 int flag_givenyear = 0; /* user has specified year [n] */
367 errx(EX_USAGE, "year `
587 struct monthlines year[12]; local
677 struct monthlines year[12]; local
[all...]
/freebsd-10.0-release/sys/conf/
H A Dnewvers.sh55 year=`date '+%Y'`
61 -e "s/\[year\]/1992-$year/" \
73 * Copyright (c) 1992-$year The FreeBSD Project.
/freebsd-10.0-release/sys/dev/iicbus/
H A Dds133x.c305 ct.year = 2000 + FROMBCD(date[6]);
307 ct.year = 1900 + FROMBCD(date[6]) +
332 date[6] = TOBCD(ct.year - 2000);
333 else if (ct.year >= 2000) {
335 date[6] = TOBCD(ct.year - 2000);
337 date[6] = TOBCD(ct.year - 1900);
/freebsd-10.0-release/contrib/ntp/include/
H A Dntp_calendar.h10 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...]

Completed in 215 milliseconds

1234567