Searched refs:year (Results 76 - 100 of 209) sorted by relevance

123456789

/freebsd-current/bin/date/
H A Dvary.c106 int year; local
108 year = t->tm_year + 1900;
111 if (!(year % 400))
113 else if (!(year % 100))
115 else if (!(year % 4))
159 val += 11 - t->tm_mon; /* early next year */
161 val -= t->tm_mon + 1; /* later this year */
176 val = 13 - val + t->tm_mon; /* later last year */
178 val = t->tm_mon - val + 1; /* early this year */
/freebsd-current/sys/dev/iicbus/rtc/
H A Drv3032.c165 uint8_t year; member in struct:rv3032_timeregs
396 ct.year = FROMBCD(time_regs.year) + 2000;
421 time_regs.year = TOBCD(ct.year - 2000);
H A Dnxprtc.c198 uint8_t sec, min, hour, day, wday, month, year; member in struct:time_regs
782 bct.year = tregs.year & PCF85xx_M_YEAR;
792 if (bct.year < 0x70)
794 } else if (bct.year >= 0x70)
845 if (bct.year >= 0x2000)
847 } else if (bct.year < 0x2000)
856 tregs.year = (bct.year & 0xff) | cflag;
/freebsd-current/sys/arm/allwinner/
H A Daw_rtc.c298 ct.year = GET_YEAR_VALUE(rdate) + YEAR_OFFSET;
320 if ((ct.year < YEAR_MIN) || (ct.year > YEAR_MAX)) {
321 device_printf(dev, "could not set time, year out of range\n");
336 SET_YEAR_VALUE(ct.year - YEAR_OFFSET) |
337 SET_LEAP_VALUE(IS_LEAP_YEAR(ct.year));
/freebsd-current/contrib/kyua/utils/
H A Ddatetime.cpp305 /// \param year The year in the [1900,inf) range.
316 datetime::timestamp::from_values(const int year, const int month, argument
321 PRE(year >= 1900);
348 timedata.tm_year = year - 1900;
435 datetime::set_mock_now(const int year, const int month, argument
440 mock_now = timestamp::from_values(year, month, day, hour, minute, second,
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_jjy.c190 int year, month, day, hour, minute, second, msecond ; member in struct:jjyunit
432 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_DATE "# Invalid date : rc=%d year=%d month=%d day=%d"
434 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_DATETIME "# Invalid time : rc=%d year=%d month=%d day=%d hour=%d minute=%d second=%d"
1028 pp->year = up->year ;
1029 pp->day = ymd2yd( up->year, up->month, up->day ) ;
1043 pp->year -- ;
1044 pp->day = ymd2yd( pp->year, 12, 31 ) ;
1067 up->year, up->month, up->day,
1069 pp->year, p
[all...]
H A Drefclock_hpgps.c107 * Tables to compute the day of year from yyyymmdd timecode.
416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second,
461 * Compute the day of year from the yyyymmdd format.
468 if ( ! isleap_4(pp->year) ) { /* Y2KFixes */
469 /* not a leap year */
477 /* a leap year */
507 pp->year--;
508 if ( isleap_4(pp->year) ) /* Y2KFixes */
519 pp->year++;
H A Drefclock_arc.c238 9) We would appear to have a year-2000 problem with this clock since
239 it returns only the two least-significant digits of the year. But
240 ntpd ignores the year and uses the local-system year instead, so
242 sensible thing with the dates, wrapping them into a 100-year
319 /* 12. year tens */
320 /* 13. year units */
1175 || !get2(pp->a_lastcode + 12, &pp->year)) {
1201 (pp->year < 0) || (pp->year > 9
[all...]
H A Drefclock_palisade.c494 jd.year = 2015;
504 jd.year = get_u16(cp + 2);
511 (jd.year != get_u16(cp + 2)) )
526 pp->year = jd.year;
654 pp->second, pp->nsec, (mmday >> 5), (mmday & 31), pp->year, GPS_UTC_Offset);
734 pp->second, pp->nsec, (mmday >> 5), (mmday & 31), pp->year,
880 pp->nsec, (mmday >> 5), (mmday & 31), pp->year);
952 pp->year = cd.year;
[all...]
H A Drefclock_mx4200.c387 /* month of year */
388 /* year */
578 /* month of year */
579 /* year */
883 pp->year, pp->day, pp->hour, pp->minute, pp->second,
955 int year, day_of_year, month, day_of_month; local
965 &sentence_type, &time_mark_valid, &year, &month, &day_of_month,
1014 * (Certainly can't be any year before this code was last altered!)
1017 day_of_month < 1 || month < 1 || year < YEAR_LAST_MODIFIED) {
1020 year, mont
1135 mx4200_jday( int year, int month, int day_of_month ) argument
[all...]
H A Drefclock_tsyncpci.c104 #define TSYNC_TIME_BASE_YEAR (1970) // earliest acceptable year
148 unsigned short year; member in struct:TimeObj
188 unsigned int year; member in struct:DoyTimeObj
627 ** calculate year start
629 jt.year = TimeContext.timeObj.year;
657 (leapSec.utcDate.year == (unsigned int)TimeContext.timeObj.year) &&
776 // Assumptions: 1. Every fourth year is a leap year
[all...]
H A Drefclock_pcf.c159 * Y2K convert the 2-digit year
197 pp->year = tp->tm_year + 1900;
209 unit, pp->year, tp->tm_mon + 1, tp->tm_mday, pp->hour,
H A Drefclock_heath.c43 * transition. The timecode includes both the day of year and time of
79 * dd/mm/yr = day, month, year
174 * Tables to compute the ddd of year form icky dd/mm timecode. Viva la
305 &pp->year) != 8) {
347 * We determine the day of the year from the DIPswitches. This
350 * looks at the timecode and year the radio shows, then computes
352 * If in the third year of that cycle and the third and later
353 * months of that year, add one to the day. Then, correct the
362 if (pp->year % 4) {
/freebsd-current/contrib/ntp/libparse/
H A Dparse.c416 if ( clock_time->year < YEAR_PIVOT ) /* Y2KFixes [ */
417 clock_time->year += 100; /* convert 20xx%100 to 20xx-1900 */
418 if ( clock_time->year < YEAR_BREAK ) /* expand to full four-digits */
419 clock_time->year += 1900;
421 if (clock_time->year < 1970 ) /* Y2KFixes ] */
430 t = julian0(clock_time->year) - julian0(1970); /* Y2kFixes */
439 /* adjust leap year */
440 if (clock_time->month < 3 && days_per_year(clock_time->year) == 366)
443 if ( clock_time->month >= 3 && isleap_4(clock_time->year) )
444 t++; /* add one more if within leap year */
[all...]
H A Dclk_rawdcf.c229 unsigned int y = (unsigned int)clock_time->year;
247 d += y + (y >> 2) + 2u; /* year-related share */
269 /* combine year with centuries & map to [1970..2369] */
271 clock_time->year = (int)y + ((y < 370u) ? 2000 : 1600);
340 clock_time->year = ext_bf(buffer, DCF_Y10, dcfprm->zerobits);
341 clock_time->year = TIMES10(clock_time->year) + ext_bf(buffer, DCF_Y1, dcfprm->zerobits);
372 (int)clock_time->hour, (int)clock_time->minute, (int)clock_time->day, (int)clock_time->month,(int) clock_time->year,
/freebsd-current/contrib/diff/lib/
H A Dstrftime.c119 /* 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-current/lib/libc/stdtime/
H A Dstrftime.c338 case 'G': /* ISO 8601 year (four digits) */
339 case 'g': /* ISO 8601 year (two digits) */
342 * year (the first Monday as the first day of week 1) as a decimal number
347 * "Week 01 of a year is per definition the first week which has the
348 * Thursday in this year, which is equivalent to the week which contains
349 * the fourth day of January. In other words, the first week of a new year
350 * is the week which has the majority of its days in the new year. Week 01
351 * might also contain days from the previous year and the week before week
352 * 01 of a year is the last week (52 or 53) of the previous year eve
359 int year; local
[all...]
/freebsd-current/contrib/tzcode/
H A Dstrftime.c373 case 'G': /* ISO 8601 year (four digits) */
374 case 'g': /* ISO 8601 year (two digits) */
377 ** year (the first Monday as the first day of week 1) as a decimal number
382 ** "Week 01 of a year is per definition the first week which has the
383 ** Thursday in this year, which is equivalent to the week which contains
384 ** the fourth day of January. In other words, the first week of a new year
385 ** is the week which has the majority of its days in the new year. Week 01
386 ** might also contain days from the previous year and the week before week
387 ** 01 of a year is the last week (52 or 53) of the previous year eve
394 int year; local
[all...]
/freebsd-current/contrib/llvm-project/libcxx/include/__chrono/
H A Dostream.h24 #include <__chrono/year.h>
157 operator<<(basic_ostream<_CharT, _Traits>& __os, const year& __y) {
159 : std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "{:%Y} is not a valid year"), __y));
220 return __os << std::format(__os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{}/{:L}"), __ym.year(), __ym.month());
234 __os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{}/{:L}"), __ymdl.year(), __ymdl.month_day_last());
243 __ymwd.year(),
254 __ymwdl.year(),
/freebsd-current/secure/caroot/
H A DMAca-bundle.pl107 my ($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = gmtime(time);
108 return sprintf "%02d%02d%02d%02d%02d%02dZ", $year-100, $mon+1, $mday, $hour, $min, $sec;
/freebsd-current/sys/dev/efidev/
H A Defirtc.c144 ct.year = tm.tm_year;
175 tm.tm_year = ct.year;
/freebsd-current/sys/arm/mv/
H A Drtc.c148 ct.year = YEAR_BASE + FROMBCD((val & 0xff0000) >> 16);
173 (TOBCD(ct.year - YEAR_BASE) << 16);
/freebsd-current/contrib/bsddialog/lib/
H A Dbsddialog.h190 int cols, unsigned int *year, unsigned int *month, unsigned int *day);
199 int cols, unsigned int *year, unsigned int *month, unsigned int *day);
/freebsd-current/contrib/cortex-strings/scripts/
H A Dadd-license.sh9 year=`date +%Y`
11 Copyright (c) $year, Linaro Limited
/freebsd-current/contrib/wpa/src/utils/
H A Dos_none.c35 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument

Completed in 325 milliseconds

123456789