Searched refs:day (Results 51 - 75 of 154) sorted by relevance

1234567

/freebsd-11.0-release/usr.bin/calendar/
H A Dio.c247 int day[MAXCOUNT]; local
336 if ((count = parsedaymonth(buf, year, month, day, &flags,
358 tm.tm_mday = day[i];
364 events[i] = event_add(year[i], month[i], day[i], dbuf,
/freebsd-11.0-release/contrib/ntp/libparse/
H A Dclk_computime.c83 {8, 2}, {5, 2}, {2, 2}, /* day, month, year */
123 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day,
H A Dclk_rcc8000.c87 if ( STOI(O_DAY, &clock_time->day) ||
H A Dclk_schmid.c67 * Bit 2: week day, 1 byte (unused here)
138 clock_time->day = buffer[4];
H A Dclk_wharton.c106 clock_time->day = (buffer[8] - '0') * 10 + buffer[7] - '0';
H A Dclk_dcf7000.c102 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day,
H A Dclk_hopf6021.c149 if ( STOI(O_DAY, &clock_time->day) ||
H A Dclk_rawdcf.c97 * 42 - 44 DW - BCD (lsb first) day of week (1: Monday -> 7: Sunday)
284 clock_time->day = ext_bf(buffer, DCF_D10, dcfprm->zerobits);
285 clock_time->day = TIMES10(clock_time->day) + ext_bf(buffer, DCF_D1, dcfprm->zerobits);
317 (int)clock_time->hour, (int)clock_time->minute, (int)clock_time->day, (int)clock_time->month,(int) clock_time->year,
H A Dclk_trimtaip.c115 if ( STOI(O_DAY, &clock_time->day) ||
H A Dclk_varitext.c100 {8, 2}, {5, 2}, {2, 2}, /* day, month, year */
148 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day,
/freebsd-11.0-release/contrib/ntp/ntpd/
H A Drefclock_fg.c274 pp->day = 100 * BP2(3) + 10 * BP1(4) + BP2(4);
278 benahour. It doubles day number for an hours in replys after 10:10:10 UTC
306 "%d %d %d %d %d", pp->year, pp->day, pp->hour,
314 pp->year, pp->day, pp->hour, pp->minute, pp->second);
H A Drefclock_gpsvme.c188 pp->day = BCD2INT3((thi & 0x0FFF0000) >> 16);
198 "%3.3d %2.2d:%2.2d:%2.2d.%09ld %02x %08x %08x", pp->day,
213 /* With the first timecode beginning the day, check for a GPS
222 /* check_leap_sec: read the Dual Port RAM leap second day registers. The
223 onboard GPS receiver should write the hundreds digit of day of year in
244 if (leap_day && leap_day == pp->day) {
246 msyslog(LOG_ERR, "LEAP_ADDSECOND flag set, day %d (%x %x).",
H A Drefclock_ulink.c275 * O - during STD to DST day 0000-2400
277 * I - during DST to STD day 0000-2400
292 char_quality, &pp->year, &pp->day,
347 * O - during STD to DST day 0000-2400
349 * I - during DST to STD day 0000-2400
364 char_quality, &pp->year, &pp->day,
411 * DDD = current day from 1 to 366
424 &syncchar, &quality, &modechar, &pp->year, &pp->day,
H A Drefclock_palisade.c83 /* Table to get from month to day of the year */
405 * unpack_date - get day and year from date
412 int day, mon, year; local
419 day = dt[0] + days_of_year[mon - 1];
425 day ++; /* leap year and March or later */
427 return day;
539 if ((pp->day = day_of_year(&mb(11))) < 0) break;
615 if ((pp->day = day_of_year(&mb(14))) < 0)
753 if ((pp->day = day_of_year(&mb(13))) < 0)
758 printf("pp->day
[all...]
H A Drefclock_mx4200.c386 /* day of month */
577 /* day of month */
883 pp->year, pp->day, pp->hour, pp->minute, pp->second,
1092 pp->day = day_of_year;
1126 * Tables to compute the day of year. Viva la leap.
1141 register int day, i; local
1164 day = day_of_month;
1168 if (day > day2tab[month - 1]) {
1172 day += day2tab[i];
1175 if (day > day1ta
[all...]
H A Drefclock_leitch.c76 short day; member in struct:leitchunit
554 leitch->day = ATOB(4)*10 + ATOB(5);
559 if (leitch->day > days_in_month[leitch->month-1])
564 leitch->yearday = leitch->day;
/freebsd-11.0-release/contrib/ntp/parseutil/
H A Ddcfd.c206 long day; member in struct:clocktime
288 * 42 - 44 DW - BCD (lsb first) day of week (1: Monday -> 7: Sunday)
469 clock_time->day = ext_bf(buffer, DCF_D10);
470 clock_time->day = TIMES10(clock_time->day) + ext_bf(buffer, DCF_D1);
821 /* day */
822 if (clock_time->day < 1 || ((clock_time->month == 2 && days_per_year(clock_time->year) == 366) ?
823 clock_time->day > 29 : clock_time->day > days_of_month[clock_time->month]))
826 return -1; /* bad day */
[all...]
/freebsd-11.0-release/sys/amd64/vmm/io/
H A Dvrtc.c211 KASSERT(ct.day >= 1 && ct.day <= 31, ("invalid clocktime mday %d",
212 ct.day));
250 rtc->day_of_month = rtcset(rtc, ct.day);
349 error = rtcget(rtc, rtc->day_of_month, &ct.day);
350 if (error || ct.day < 1 || ct.day > 31) {
352 ct.day);
379 ct.year, ct.mon, ct.day);
/freebsd-11.0-release/contrib/ofed/management/infiniband-diags/src/
H A Dvendstat.c76 uint8_t day; member in struct:__anon5136
263 gi->fw_info.month, gi->fw_info.day, ntohs(gi->fw_info.year));
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dstrptime.c170 case 'A': /* The day of week, using the locale's form. */
175 len = strlen(_ctloc(day[i]));
176 if (strncasecmp(_ctloc(day[i]), bp, len) == 0)
226 case 'd': /* The day of month. */
251 case 'j': /* The day of year. */
319 case 'w': /* The day of week, beginning on sunday. */
/freebsd-11.0-release/sys/dev/mc146818/
H A Dmc146818.c31 * mc146818 and compatible time of day chip subroutines
101 * Get time of day and convert it to a struct timespec.
138 ct.day = FROMREG((*sc->sc_mcread)(dev, MC_DOM));
187 * Set the time of day clock based on the value of the struct timespec arg.
217 (*sc->sc_mcwrite)(dev, MC_DOM, TOREG(ct.day));
/freebsd-11.0-release/sys/dev/iicbus/
H A Dpcf8563.c172 ct.day = FROMBCD(val[PCF8563_R_DAY] & PCF8563_M_DAY);
209 val[PCF8563_R_DAY] = TOBCD(ct.day);
H A Ds35390a.c279 ct.day = FROMBCD(bcd[S390_RT1_DAY]);
302 bcd[S390_RT1_DAY] = TOBCD(ct.day);
/freebsd-11.0-release/sys/arm/ti/am335x/
H A Dam335x_rtc.c174 ct.day = FROMBCD(RTC_READ4(rtc_sc, RTC_DAYS) & 0x3f);
184 RTC_WRITE4(rtc_sc, RTC_ALARM2_DAYS, TOBCD(ct.day));
/freebsd-11.0-release/sys/arm/allwinner/
H A Daw_rtc.c229 ct.day = GET_DAY_VALUE(rdate);
268 rdate = SET_DAY_VALUE(ct.day) | SET_MON_VALUE(ct.mon) |

Completed in 274 milliseconds

1234567