/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tmweek.c | 45 * 0 sunday first day of week 46 * 1 monday first day of week 47 * 2 monday first day of iso week 49 * if day<0 then set tm to first day of week 50 * otherwise set tm to day in week 55 tmweek(Tm_t* tm, int type, int week, int day) argument 61 if ((day = tm->tm_wday - tm->tm_yday % 7) < 0) 62 day += 7; 63 week = (tm->tm_yday + offset[day][typ [all...] |
H A D | tmxdate.c | 172 int day; local 211 day = -1; 222 * get <weekday year month day hour minutes seconds ?[ds]t [ap]m> 523 * min hour day-of-month month day-of-week 555 char day[7]; local 606 * day of month 627 * day of week 630 if ((k = range(t, &t, day, 0, 6)) < 0) 666 if (hit[j] && day[ [all...] |
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | getdate.y | 136 | day { 190 day : tDAY { label 298 /* Month and day table. */ 333 { "day", tMINUTE_UNIT, 1 * 24 * 60 },
|
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/ |
H A D | getdate.y | 277 | day { 335 day : tDAY { label 436 /* Month and day table. */ 471 { gettext("day"), tMINUTE_UNIT, 1 * 24 * 60 }, 904 /* difference in day of year */ 985 * yyDayOrdinal: val specified with day ("second monday", 1048 * Now, if you specified a day of week and counter, add it in. By
|
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/ |
H A D | newlocale_test.c | 64 char *day; local 74 day = nl_langinfo_l(DAY_1, loc); 75 if (strcmp(day, l->day1) != 0) { 77 day, l->day1); 80 test_debugf(t, "DAY1: %s", day); 82 day = nl_langinfo(DAY_1); 83 if (strcmp(day, "Sunday") != 0) { 84 test_failed(t, "C locale day wrong %s != Sunday", 85 day); 97 day 136 char *day; local 165 char *day, *cur, *yes; local 200 char *day, *cur, *yes; local [all...] |
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | display_funcs.c | 95 int sec, min, hour, day, month, year; local 99 day = BCD_TO_BYTE(mostek[4] & 0x3f); 107 utc += days_thru_month[month] + day - 1; 108 utc = (utc << 3) + (utc << 4) + hour; /* 24 * day + hour */
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | pnpsplit.c | 49 static int holidays[NHOLIDAYS]; /* holidays file day-of-year table */ 58 * prime(0) and nonprime(1) times during a day 67 int daysend[] = {0, 60, 23}; /* the sec, min, hr of the day's end */ 99 while ( tcur < tend ) { /* one iteration per day or part thereof */ 112 } else { /* working day, PRIME or NONPRIME */ 135 * Starting day after Christmas, complain if holidays not yet updated. 192 int doy; /* day of the year */ 193 int month, day; local 257 /* This is the end of the day */ 276 sscanf(holbuf, "%d/%d %*s %*s %*[^\n]\n", &month, &day); [all...] |
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | time.c | 174 int day = tme->tm_mday; local 191 num_sec += --day * 24 * 60 * 60; 248 gettext("day of year out of range (%d)"), tme->tm_yday); 265 * types are - 's' second, 'm' minute, 'h' hour, and 'd' day. 347 * For 'd' option clear out the hh:mm:ss to get to the start of the day. 348 * Then add one day's worth of seconds to get the 'b' time.
|
/illumos-gate/usr/src/cmd/touch/ |
H A D | touch.c | 273 char *day; local 310 day = strsep(&p, "T "); 319 day == NULL || strlen(day) != 2 || !isnumber(day) || 330 tm.tm_mday = atoi(day);
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_subr.c | 63 static time_t hs_date_to_gmtime(int year, int mon, int day, int gmtoff); 164 int year, month, day, hour, minute, sec, gmtoff; local 168 day = HDE_DATE_DAY(dp); 178 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 201 int year, month, day, hour, minute, sec, gmtoff; local 205 day = HSV_DATE_DAY(dp); 215 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 239 * Convert year(1970-2099)/month(1-12)/day(1-31) to seconds-since-1970/1/1. 244 hs_date_to_gmtime(year, mon, day, gmtoff) 247 int day; [all...] |
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_subr.c | 121 uint_t year, month, day, hour, min, sec; local 151 day = (int)(unixtime / 86400); 152 unixtime -= 86400 * day++; /* counting starts at 1 */ 162 PC_DPRINTF3(1, "ux2pc date: %d.%d.%d\n", day, month, YEAR_ZERO + year); 168 ASSERT(day >= 1 && day <= days_in_month(month, year)); 176 LE_16(year << YEARSHIFT | month << MONSHIFT | day << DAYSHIFT); 192 uint_t year, month, day, hour, min, sec; local 197 day = (LE_16(pctp->pct_date) >> DAYSHIFT) & DAYMASK; 209 day [all...] |
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_vercheck.c | 80 * on the year, month, day, hour and minute by turning that into 87 int maj, year, month, day, hour, min; local 130 day = strtoi(c + 8, NULL); 132 if (year < 1995 || month == 0 || day == 0) 154 DAY(day) + HOUR(hour) + MINUTE(min));
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | eventlog_log.c | 108 char *day = argv[LOGR_DAY]; local 115 (void) snprintf(buf, 32, "%s %s %s", month, day, time); 165 * <month> <day> <time> <host> <msg> 166 * <month> <day> <time> <host> <source>: [ID <ID> <facility.priority>] <msg>
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | str_conv.c | 316 (days > 1) ? "days" : "day", 320 (days > 1) ? "days" : "day"); 345 char day[7][10]; 343 char day[7][10]; member in struct:dummy_locale_info_t
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | date.c | 36 ** be represented, even though julian day numbers allow a much wider 67 double rJD; /* The julian day number */ 68 int Y, M, D; /* Year, month, and day */ 214 ** Convert from YYYY-MM-DD HH:MM:SS to julian day. We always assume 336 ** Compute the Year, Month, and Day from the julian day number. 362 ** Compute the Hour, Minute, and Seconds from the julian day number. 451 ** start of day 489 ** seconds since 1970. Convert to a real julian day number. 534 ** Move the date backwards to the beginning of the current day, 553 }else if( strcmp(z,"day") 580 int day; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 51 kmutex_t tod_lock; /* protects time-of-day stuff */ 72 * Time of day and interval timer support. 75 * the time-of-day and per-process interval timers. Subroutines 710 * Advances timer value past the current time of day. See the detailed 1356 * into year/month/day/hour/minute/second format, and back again. 1372 long dse, day, month, year; local 1401 day = dse - 365 * (year - 70) - ((year - 69) >> 2); 1402 } while (day < 0); 1405 while (day >= days_thru_month[month + 1]) 1408 tod.tod_day = day [all...] |
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http.c | 1521 int day, year; /* Day of month and year */ local 1525 if (sscanf(s, "%*s%d%15s%d%d:%d:%d", &day, mon, &year, &hour, &min, &sec) < 6) 1536 tdate.tm_mday = day;
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.c | 1312 unsigned year,month,day,hour,min,sec; /* Calendar time components */ local 1344 if(sscanf(timestr, "%4u%2u%2u%2u%2u%2u", &year, &month, &day, &hour, &min, 1359 t.tm_mday = day; 1442 * %T - The time of day, like 23:59:59 1573 case 'T': /* Display the time of day */
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | literals.h | 103 L_DECL(day); variable
|
/illumos-gate/usr/src/cmd/fwflash/plugins/hdrs/ |
H A D | hermon_ib.h | 128 uint8_t day; member in struct:cnx_fw_build_time_tag
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | nl7chttp.c | 171 * HTTP date routines, dow[] for day of the week, Dow[] for day of the 172 * week for the Unix epoch (i.e. day 0 is a Thu), months[] for the months 173 * of the year, and dom[] for day number of the year for the first day 219 ssize_t day; local 224 /* Parse and skip day-of-week (we don't use it) */ 264 /* Get day of the month */ 278 day = n; 279 /* Get day/mont 602 ssize_t day; local [all...] |
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 1082 int year, month, day, hour, minute, sec, gmtoff; local 1086 day = HDE_DATE_DAY(dp); 1096 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 1117 int year, month, day, hour, minute, sec, gmtoff; local 1121 day = HSV_DATE_DAY(dp); 1131 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 1155 * Convert year(1970-2099)/month(1-12)/day(1-31) to seconds-since-1970/1/1. 1160 hs_date_to_gmtime(int year, int mon, int day, int gmtoff) argument 1168 (day < 1) || (day > 3 [all...] |
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_ami.h | 165 short day; member in struct:__anon4022
|
/illumos-gate/usr/src/cmd/zic/ |
H A D | zic.c | 1143 int year, month, day; local 1183 if (sscanf(cp, scheck(cp, "%d"), &day) != 1 || 1184 day <= 0 || day > len_months[isleap(year)][month]) { 1185 error(gettext("invalid day of month")); 1188 dayoff = oadd(dayoff, eitol(day - 1)); 1202 tod = gethms(fields[LP_TIME], gettext("invalid time of day"), FALSE); 1307 rp->r_tod = gethms(dp, gettext("invalid time of day"), FALSE); 1408 error(gettext("invalid day of month")); 1422 error(gettext("invalid day o [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | cron.c | 1542 * PRGM | min hour day of month mon day of week 1550 int tm_mon, tm_mday, tm_wday, wday, m, min, h, hr, carry, day, days; local 1705 * will be on a different day than the current 1708 /* check monthly day specification */ 1714 /* check weekly day specification */ 1726 * the day of the month for the next occurance of this event. 1751 /* wd is the day of the week of the first of month mon */ 1763 day = (day1 < day2) ? day1 : day2; 1767 day [all...] |