Searched refs:week (Results 1 - 12 of 12) sorted by relevance
/freebsd-10.1-release/lib/libcalendar/ |
H A D | Makefile | 13 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-10.1-release/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 int week = getshort((unsigned char *)&mb(4)); local 268 if (week < GPSWRAP) { 269 week += GPSWEEKS; 281 gpstolfp((unsigned short)week, (unsigned short)0, 354 t->t_weekleap = (u_short) getshort((unsigned char *)&mb(20)); /* week no of leap correction */ 358 t->t_dayleap = (u_short) getshort((unsigned char *)&mb(22)); /* day in week o [all...] |
/freebsd-10.1-release/contrib/ntp/tests/libntp/ |
H A D | calendar.c | 98 iso->year, (u_int)iso->week, (u_int)iso->weekday, 136 expected->week == actual->week && 170 iso->year, (u_int)iso->week, (u_int)iso->weekday); 199 expected->week == actual->week && 479 * ISO8601 week calendar internals 481 * The ISO8601 week calendar implementation is simple in the terms of 493 /* helper / reference implementation for the first week of year in the 494 * ISO8601 week calenda [all...] |
/freebsd-10.1-release/contrib/ntp/include/ |
H A D | ntp_calendar.h | 23 /* ISO week calendar date */ 26 uint8_t week; /* 1..53, week in year */ member in struct:isodate 50 * days-of-week 86 #define DAYSPERWEEK (7) /* days per week */ 337 * ISO week-calendar conversions 364 * day-of-week calculations 366 * Given a RataDie and a day-of-week, calculate a RDN that is reater-than, 368 * and denotes the given day-of-week
|
/freebsd-10.1-release/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-10.1-release/contrib/ntp/ntpd/ |
H A D | refclock_nmea.c | 136 * WN -- GPS week number (weeks since 1980-01-06, mod 1024) 137 * WS -- GPS seconds in week 263 * NMEA gps week/time information 265 * 1024, the seconds elapsed since start of the week, and the number of 270 u_short wt_week; /* week number */ 275 * The GPS week time scale starts on Sunday, 1980-01-06. We need the 801 gps_weektm gpsw; /* week time storage */ 1590 * Parse GPS week time info from an NMEA sentence. This info contains 1591 * the GPS week number, the GPS time-of-week an 1736 u_short week; local [all...] |
H A D | ntp_filegen.c | 165 SUFFIX_SEP, iso.year, iso.week);
|
/freebsd-10.1-release/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-10.1-release/contrib/ntp/libntp/ |
H A D | ntp_calendar.c | 909 /* Get day-of-week first. Since rd is signed, the remainder can 954 /* get day-of-week first */ 1532 * day-of-week calculations 1537 * Given a RataDie and a day-of-week, calculate a RDN that is reater-than, 1539 * and denotes the given day-of-week 1589 * ISO week-calendar conversions 1772 /* get year and week in year */ 1773 ds = isocal_split_eraweeks(ds.hi); /* elapsed years&week*/ 1775 id->week = (uint8_t )ds.lo + 1; 1809 + (int32_t)id->week [all...] |
/freebsd-10.1-release/usr.bin/ncal/ |
H A D | ncal.c | 116 /* Table used to print day of month and week numbers */ 122 /* Table used to print day of year and week numbers */ 162 static int flag_weeks; /* user wants number of week */ 651 /* Day of the week names. */ 771 int firstm; /* first day of first week of month */ 800 * Set firstm to the day number of monday of the first week of 848 ds + week(j, &i)*dw, dw); 862 int firsts; /* sunday of first week of month */ 913 * Set firsts to the day number of sunday of the first week of 920 * line index: i, each line is one week [all...] |
Completed in 103 milliseconds