/freebsd-11-stable/lib/libcalendar/ |
H A D | Makefile | 14 calendar.3 week.3 calendar.3 weekday.3
|
H A D | calendar.h | 41 int week(int _nd, int *_year);
|
H A D | calendar.c | 228 * Compute the week number from the number of days since March 1st year 0. 230 * week of a year includes at least four days of that year it is week 1, 231 * otherwise it gets the number of the last week of the previous year. 233 * part of the week. 236 week(int nd, int *y) function 239 int fw; /* 1st day of week 1 of previous, this and 247 /* return the first day of week 1 of year y */ 260 * If more than 3 days of this week are in the preceding year, the 261 * next week i [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | ntp_calgps.c | 53 * normalization functions for day/time and week/time representations. 96 * Add an offset to a day/time and week/time representation. 99 * (either a day or a week). 297 * get day/tod representation from week/tow datum 343 * API functions GPS week calendar 361 uint32_t base, week; local 364 week = out.weeks; 366 week = base + ((week - base) & (GPSWEEKS - 1)); 367 out.weeks = week; 410 int32_t days, week; local 503 gpscal_from_gpsweek( uint16_t week, int32_t secs, l_fp fofs ) argument [all...] |
H A D | ntp_calendar.c | 769 * elapsed seconds since week start in 'res.lo' using explicit floor 1004 /* Get day-of-week first. It's simply the RD (mod 7)... */ 1041 /* get day-of-week first */ 1259 int32_t week, 1267 res.q_s = week; 1273 res = _dwjoin(4725, week, secs); 1667 * day-of-week calculations 1672 * Given a RataDie and a day-of-week, calculate a RDN that is reater-than, 1674 * and denotes the given day-of-week 1724 * ISO week 1258 ntpcal_weekjoin( int32_t week, int32_t secs ) argument [all...] |
/freebsd-11-stable/contrib/ntp/libparse/ |
H A D | clk_trimtsip.c | 104 u_short t_week; /* GPS week */ 105 u_short t_weekleap; /* GPS week of next/last week */ 106 u_short t_dayleap; /* day in week */ 254 u_int week = getshort((unsigned char *)&mb(4)); local 268 week = basedate_expand_gpsweek(week); 279 gpstolfp((unsigned short)week, (unsigned short)0, 353 (u_short) getshort((unsigned char *)&mb(20))); /* week no of leap correction */ 355 t->t_dayleap = (u_short) getshort((unsigned char *)&mb(22)); /* day in week o [all...] |
/freebsd-11-stable/contrib/dialog/ |
H A D | calendar.c | 37 /* two more lines: titles for day-of-week and month/year boxes */ 223 int week; local 248 week = (current->tm_yday + 6 + mday - current->tm_mday) / 7; 256 ++week);
|
/freebsd-11-stable/contrib/ntp/include/ |
H A D | ntp_calendar.h | 25 /* ISO week calendar date */ 28 uint8_t week; /* 1..53, week in year */ member in struct:isodate 54 * days-of-week 90 #define DAYSPERWEEK (7) /* days per week */ 100 #define GPSWEEKS 1024 /* GPS week cycle */ 161 * since start of week. 357 * ISO week-calendar conversions 384 * day-of-week calculations 386 * Given a RataDie and a day-of-week, calculat [all...] |
/freebsd-11-stable/contrib/tzcode/zic/ |
H A D | zic.c | 1853 register int week; local 1856 week = 1 + rp->r_dayofmonth / DAYSPERWEEK; 1857 if ((week - 1) * DAYSPERWEEK + 1 != rp->r_dayofmonth) 1861 week = 5; 1863 week = 1 + rp->r_dayofmonth / DAYSPERWEEK; 1864 if (week * DAYSPERWEEK - 1 != rp->r_dayofmonth) 1869 rp->r_month + 1, week, rp->r_wday);
|
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_nmea.c | 137 * WN -- GPS week number (weeks since 1980-01-06, mod 1024) 138 * WS -- GPS seconds in week 222 DTYP_W10B, /* 10-bit week in GPS epoch */ 224 DTYP_WEXT /* extended week in GPS epoch */ 657 TGpsDatum wgps; /* week time storage */ 863 /* PUBX,04 is peculiar. The UTC time-of-week is the *internal* 1691 * Parse GPS week time info from an NMEA sentence. This info contains 1692 * the GPS week number, the GPS time-of-week and the leap seconds GPS 1708 uint16_t week, lea local [all...] |
H A D | ntp_filegen.c | 165 SUFFIX_SEP, iso.year, iso.week);
|
/freebsd-11-stable/usr.bin/ncal/ |
H A D | ncal.c | 118 /* Table used to print day of month and week numbers */ 124 /* Table used to print day of year and week numbers */ 164 static int flag_weeks; /* user wants number of week */ 653 /* Day of the week names. */ 773 int firstm; /* first day of first week of month */ 802 * Set firstm to the day number of monday of the first week of 850 ds + week(j, &i)*dw, dw); 864 int firsts; /* sunday of first week of month */ 915 * Set firsts to the day number of sunday of the first week of 922 * line index: i, each line is one week [all...] |
/freebsd-11-stable/contrib/libxo/xohtml/external/ |
H A D | jquery.js | 6892 rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|