Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 57) sorted by relevance

123

/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dmdate-sh86 month=
88 until test $month
98 May) month=May; nummonth=5;;
99 Jun) month=June; nummonth=6;;
100 Jul) month=July; nummonth=7;;
119 Mar) month=March; nummonth=3;;
120 Apr) month=April; nummonth=4;;
121 May) month=May; nummonth=5;;
122 Jun) month=June; nummonth=6;;
123 Jul) month=July; nummonth=7;;
[all …]
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_subr.c121 uint_t year, month, day, hour, min, sec; in pc_tvtopct() local
145 for (month = 1; unixtime >= 86400 * days_in_month(month, year); in pc_tvtopct()
146 month++) in pc_tvtopct()
147 unixtime -= 86400 * days_in_month(month, year); in pc_tvtopct()
167 ASSERT(month >= 1 && month <= 12); in pc_tvtopct()
192 uint_t year, month, day, hour, min, sec; in pc_pcttotv() local
208 month = 1; in pc_pcttotv()
211 if (month > 12 || month < 1 || in pc_pcttotv()
216 day, month, year, hour, min, sec); in pc_pcttotv()
228 while (month > 1) { in pc_pcttotv()
[all …]
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/
H A Ddate.c155 specTime.month = specTime.month - 1; in ADM_Set_Date()
228 Date->month = ADM_twodigits(&String[0]); in ADM_Decode_Date()
234 if ((Date->month < 1) || (Date->month > 12)) in ADM_Decode_Date()
252 if ((Date->month < 1) || (Date->month > 12)) in ADM_Decode_Date()
266 Date->month = ADM_twodigits(&String[0]); in ADM_Decode_Date()
277 if ((Date->month < 1) || (Date->month > 12)) in ADM_Decode_Date()
291 Date->month = ADM_twodigits(&String[0]); in ADM_Decode_Date()
302 if ((Date->month < 1) || (Date->month > 12)) in ADM_Decode_Date()
318 Date->month = ADM_twodigits(&String[0]); in ADM_Decode_Date()
325 if ((Date->month < 1) || (Date->month > 12)) in ADM_Decode_Date()
[all …]
/illumos-gate/usr/src/cmd/cal/
H A Dcal.c319 int month; in load_months() local
321 for (month = MON_1; month <= MON_12; month++) in load_months()
322 months[month - MON_1] = nl_langinfo(month); in load_months()
323 for (month = ABMON_1; month <= ABMON_12; month++) in load_months()
324 short_months[month - ABMON_1] = nl_langinfo(month); in load_months()
/illumos-gate/usr/src/cmd/acct/lib/
H A Dpnpsplit.c197 int month, day; in inithol() local
280 sscanf(holbuf, "%d/%d %*s %*s %*[^\n]\n", &month, &day); in inithol()
281 if (month < 0 || month > 12) { in inithol()
282 fprintf(stderr, "pnpsplit: invalid month %d\n", month); in inithol()
291 doy = day_of_year(thisyear, month, day); in inithol()
335 day_of_year(int year, int month, int day) in day_of_year() argument
340 for (i = 1; i < month; i++) in day_of_year()
/illumos-gate/usr/src/boot/efi/libefi/
H A Dtime.c109 int lyear, month; in to_efi_time() local
115 month = 13; in to_efi_time()
116 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
121 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
130 month = efi_time->Month - 1; in to_efi_time()
131 time -= CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_misc.c196 int month; in smb_gmtime_r() local
223 for (month = TM_JANUARY; month <= TM_DECEMBER; ++month) { in smb_gmtime_r()
224 sec_per_month = days_in_month[month] * SECSPERDAY; in smb_gmtime_r()
226 if (month == TM_FEBRUARY && isleap(year)) in smb_gmtime_r()
235 result->tm_mon = month; in smb_gmtime_r()
/illumos-gate/usr/src/cmd/localedef/
H A Dtime.c112 add_list(tm.month, str, 12); in add_time_list()
150 if (tm.month[11] != NULL) in check_time_list()
189 free((char *)tm.month[i]); in reset_time_list()
190 tm.month[i] = NULL; in reset_time_list()
231 if (putl_category(tm.month[i], f) == EOF) { in dump_time()
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_subr.c162 int year, month, day, hour, minute, sec, gmtoff; local
165 month = HDE_DATE_MONTH(dp);
176 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
199 int year, month, day, hour, minute, sec, gmtoff; local
202 month = HSV_DATE_MONTH(dp);
213 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
/illumos-gate/usr/src/lib/libsqlite/test/
H A Ddate.test64 datetest 2.13 {datetime('2003-10-22 12:34','start of month')} \
75 datetest 2.21 {datetime('2003-10-22 12:34','1 month')} {2003-11-22 12:34:00}
76 datetest 2.22 {datetime('2003-10-22 12:34','11 month')} {2004-09-22 12:34:00}
77 datetest 2.23 {datetime('2003-10-22 12:34','-13 month')} {2002-09-22 12:34:00}
201 datetest 8.5 {datetime('now','start of month')} {2003-10-01 00:00:00}
208 datetest 8.12 {datetime('now','1 month')} {2003-11-22 12:34:00}
209 datetest 8.13 {datetime('now','11 month')} {2004-09-22 12:34:00}
210 datetest 8.14 {datetime('now','-13 month')} {2002-09-22 12:34:00}
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c93 int sec, min, hour, day, month, year; in get_time() local
96 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4); in get_time()
105 utc += days_thru_month[month] + day - 1; in get_time()
/illumos-gate/usr/src/cmd/touch/
H A Dtouch.c272 char *month; in parse_datetime() local
309 month = strsep(&p, "-"); in parse_datetime()
318 month == NULL || strlen(month) != 2 || !isnumber(month) || in parse_datetime()
329 tm.tm_mon = atoi(month) - 1; in parse_datetime()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrptime.c366 for (i = 0; i < asizeof(tptr->month); i++) { in __strptime()
367 len = strlen(tptr->month[i]); in __strptime()
368 if (strncasecmp(buf, tptr->month[i], len) == 0) in __strptime()
375 if (i == asizeof(tptr->month)) { in __strptime()
376 for (i = 0; i < asizeof(tptr->month); i++) { in __strptime()
383 if (i == asizeof(tptr->month)) in __strptime()
H A Dtimelocal.h38 const char *month[12]; member
H A Dnl_langinfo.c107 ret = (char *)ltime->month[_REL(MON_1)]; in nl_langinfo_l()
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c1397 long dse, day, month, year; in utc_to_tod() local
1429 month = ((year & 3) << 4) + 1; in utc_to_tod()
1430 while (day >= days_thru_month[month + 1]) in utc_to_tod()
1431 month++; in utc_to_tod()
1433 tod.tod_day = day - days_thru_month[month] + 1; in utc_to_tod()
1434 tod.tod_month = month & 15; in utc_to_tod()
1446 int month = tod.tod_month + ((year & 3) << 4); in tod_to_utc() local
1455 int days_diff = days_thru_month[month + 1] - days_thru_month[month]; in tod_to_utc()
1513 utc += days_thru_month[month] + tod.tod_day - 1; in tod_to_utc()
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c173 int month = tme->tm_mon; in tm_to_secs() local
182 while (month > 0) { in tm_to_secs()
183 days = days_month[--month]; in tm_to_secs()
184 if (leap_year && month == 1) { /* 1 is February */ in tm_to_secs()
/illumos-gate/usr/src/cmd/acct/
H A Dwtmpfix.c125 int month; in main() local
134 month = tmp->tm_mon + 1; in main()
136 (month - 1) * 30) * DAYEPOCH; in main()
138 (month + 1) * 30) * DAYEPOCH; in main()
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c1083 int year, month, day, hour, minute, sec, gmtoff; in hs_parse_dirdate() local
1086 month = HDE_DATE_MONTH(dp); in hs_parse_dirdate()
1097 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); in hs_parse_dirdate()
1118 int year, month, day, hour, minute, sec, gmtoff; in hs_parse_longdate() local
1121 month = HSV_DATE_MONTH(dp); in hs_parse_longdate()
1132 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); in hs_parse_longdate()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Deventlog_log.c107 char *month = argv[LOGR_MONTH]; in logr_syslog_set_timestamp() local
115 (void) snprintf(buf, 32, "%s %s %s", month, day, time); in logr_syslog_set_timestamp()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_kutil.c1276 int month; in smb_gmtime_r() local
1303 for (month = TM_JANUARY; month <= TM_DECEMBER; ++month) { in smb_gmtime_r()
1304 sec_per_month = days_in_month[month] * SECSPERDAY; in smb_gmtime_r()
1306 if (month == TM_FEBRUARY && isleap(year)) in smb_gmtime_r()
1315 result->tm_mon = month; in smb_gmtime_r()
/illumos-gate/usr/src/cmd/fwflash/plugins/hdrs/
H A Dhermon_ib.h127 uint8_t month; member
/illumos-gate/usr/src/lib/libiscsit/common/
H A Dlibiscsit.c1918 char month[3]; in validate_iscsi_name() local
1944 (void) strncpy(month, &(in_name[9]), 2); in validate_iscsi_name()
1945 month[2] = '\0'; in validate_iscsi_name()
1947 i = atoi(month); in validate_iscsi_name()
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dliterals.h110 L_DECL(month);
/illumos-gate/usr/src/uts/intel/io/vmm/io/
H A Dvrtc.c74 uint8_t month; member
395 rtc->month = rtc_enc(rtc, ct.mon); in vrtc_time_to_cmos()
562 ct.mon = rtc_dec(rtc, rtc->month, &err); in vrtc_cmos_to_secs()

123