Searched defs:month (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dtimelocal.h38 const char *month[12]; member in struct:lc_time
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c95 int sec, min, hour, day, month, year; local
98 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4);
107 utc += days_thru_month[month] + day - 1;
/illumos-gate/usr/src/cmd/acct/lib/
H A Dpnpsplit.c193 int month, day; local
276 sscanf(holbuf, "%d/%d %*s %*s %*[^\n]\n", &month, &day);
277 if (month < 0 || month > 12) {
278 fprintf(stderr, "pnpsplit: invalid month %d\n", month);
287 doy = day_of_year(thisyear, month, day);
330 /* set day of year from month and day */
333 day_of_year(year, month, day)
338 for (i = 1; i < month;
[all...]
/illumos-gate/usr/src/cmd/cal/
H A Dcal.c131 * print out just month
141 * specified month and year.
321 int month; local
323 for (month = MON_1; month <= MON_12; month++)
324 months[month - MON_1] = nl_langinfo(month);
325 for (month = ABMON_1; month <
[all...]
/illumos-gate/usr/src/cmd/calendar/
H A Dcalprog.c72 char *month[] = { variable
98 month[tm->tm_mon], tm->tm_mon + 1, tm->tm_mday);
/illumos-gate/usr/src/cmd/acct/
H A Dwtmpfix.c127 int month; local
136 month = tmp->tm_mon + 1;
138 (month - 1) * 30) * DAYEPOCH;
140 (month + 1) * 30) * DAYEPOCH;
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c50 * Array of days per month.
175 int month = tme->tm_mon; local
184 while (month > 0) {
185 days = days_month[--month];
186 if (leap_year && month == 1) { /* 1 is February */
/illumos-gate/usr/src/cmd/touch/
H A Dtouch.c272 char *month; local
309 month = strsep(&p, "-");
318 month == NULL || strlen(month) != 2 || !isnumber(month) ||
329 tm.tm_mon = atoi(month) - 1;
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_subr.c164 int year, month, day, hour, minute, sec, gmtoff; local
167 month = HDE_DATE_MONTH(dp);
178 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
201 int year, month, day, hour, minute, sec, gmtoff; local
204 month = HSV_DATE_MONTH(dp);
215 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
224 /* cumulative number of seconds per month, non-leap and leap-year versions */
239 * Convert year(1970-2099)/month(1-12)/day(1-31) to seconds-since-1970/1/1.
268 * add in seconds until this month.
274 * (days-per-month validatio
[all...]
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_subr.c121 uint_t year, month, day, hour, min, sec; local
145 for (month = 1; unixtime >= 86400 * days_in_month(month, year);
146 month++)
147 unixtime -= 86400 * days_in_month(month, year);
162 PC_DPRINTF3(1, "ux2pc date: %d.%d.%d\n", day, month, YEAR_ZERO + year);
167 ASSERT(month >= 1 && month <= 12);
168 ASSERT(day >= 1 && day <= days_in_month(month, year));
176 LE_16(year << YEARSHIFT | month << MONSHIF
192 uint_t year, month, day, hour, min, sec; local
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_time.c78 #define DD_DAY_MASK 0x1F /* day of month */
80 #define DD_MONTH_MASK 0x1E0 /* month */
85 * Total number of days that have passed for each month in a regular year.
93 * Total number of days that have passed for each month in a leap year.
206 ulong_t days, year, month, inc; local
237 * all this leap year and month stuff.
256 for (month = 0; days >= months[month]; month++)
258 if (month >
297 ulong_t month; local
[all...]
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_vercheck.c80 * on the year, month, day, hour and minute by turning that into
87 int maj, year, month, day, hour, min; local
129 month = strtoi(c + 5, NULL);
132 if (year < 1995 || month == 0 || day == 0)
153 return (YEAR(year) + MONTH(month) +
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Deventlog_log.c107 char *month = argv[LOGR_MONTH]; 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/uts/common/os/
H A Dtimers.c1356 * into year/month/day/hour/minute/second format, and back again.
1372 long dse, day, month, year; local
1404 month = ((year & 3) << 4) + 1;
1405 while (day >= days_thru_month[month + 1])
1406 month++;
1408 tod.tod_day = day - days_thru_month[month] + 1;
1409 tod.tod_month = month & 15;
1421 int month = tod.tod_month + ((year & 3) << 4); local
1430 int days_diff = days_thru_month[month + 1] - days_thru_month[month];
[all...]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c1312 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,
1362 t.tm_mon = month - 1;
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dliterals.h110 L_DECL(month); variable
/illumos-gate/usr/src/cmd/fwflash/plugins/hdrs/
H A Dhermon_ib.h127 uint8_t month; member in struct:cnx_fw_build_time_tag
/illumos-gate/usr/src/cmd/sort/common/
H A Dfields.c229 * We don't need to initialize the wide version of the month
590 * The month field formally begins with the first non-blank character.
608 * no matching month; copy string into field. required behaviour is
609 * that "month-free" keys sort before month-sortable keys, so insert
631 wchar_t *month; local
648 month = L->l_data.wp + month_offset;
651 month_candidate[j] = towupper(month[j]);
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dnl7chttp.c174 * of each month (non leap year).
218 ssize_t month; local
264 /* Get day of the month */
279 /* Get day/month/year seperator */
285 /* Parse month */
309 month = n;
437 /* case 3, parse month */
462 month = n;
463 /* Get day of the month */
576 if (month <
600 ssize_t month; local
[all...]
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c1082 int year, month, day, hour, minute, sec, gmtoff; local
1085 month = HDE_DATE_MONTH(dp);
1096 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
1117 int year, month, day, hour, minute, sec, gmtoff; local
1120 month = HSV_DATE_MONTH(dp);
1131 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
1140 /* cumulative number of seconds per month, non-leap and leap-year versions */
1155 * Convert year(1970-2099)/month(1-12)/day(1-31) to seconds-since-1970/1/1.
1180 * add in seconds until this month.
1186 * (days-per-month validatio
[all...]
/illumos-gate/usr/src/lib/libiscsit/common/
H A Dlibiscsit.c1918 char month[3]; local
1944 (void) strncpy(month, &(in_name[9]), 2);
1945 month[2] = '\0';
1947 i = atoi(month);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_kutil.c1055 int month; local
1082 for (month = TM_JANUARY; month <= TM_DECEMBER; ++month) {
1083 sec_per_month = days_in_month[month] * SECSPERDAY;
1085 if (month == TM_FEBRUARY && isleap(year))
1094 result->tm_mon = month;
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_ami.h164 short month; member in struct:__anon4022
/illumos-gate/usr/src/cmd/iscsiadm/
H A Discsiadm_main.c4949 cmdName, gettext("invalid month"));
5200 int year, month; local
5225 * Validate month is valid.
5230 month = strtol(tmpMonth, &endPtr, 10);
5233 month < 1 || month > 12) {
/illumos-gate/usr/src/cmd/zic/
H A Dzic.c1143 int year, month, day; local
1172 error(gettext("invalid month name"));
1175 month = lp->l_value;
1177 while (j != month) {
1184 day <= 0 || day > len_months[isleap(year)][month]) {
1185 error(gettext("invalid day of month"));
1278 error(gettext("invalid month name"));
1408 error(gettext("invalid day of month"));
1422 error(gettext("invalid day of month"));
2217 "month
[all...]

Completed in 184 milliseconds

12