Home
last modified time | relevance | path

Searched refs:tm_mon (Results 1 – 25 of 94) sorted by relevance

1234

/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmfix.c33 #define DAYS(p) (tm_data.days[(p)->tm_mon]+((p)->tm_mon==1&&LEAP(p)))
108 if (tm->tm_mon >= 12) in tmfix()
111 tm->tm_mon %= 12; in tmfix()
113 else if (tm->tm_mon < 0) in tmfix()
116 if ((tm->tm_mon += 12) < 0) in tmfix()
119 tm->tm_mon = (-tm->tm_mon) % 12; in tmfix()
134 if (--tm->tm_mon < 0) in tmfix()
136 tm->tm_mon = 11; in tmfix()
144 if (++tm->tm_mon > 11) in tmfix()
146 tm->tm_mon = 0; in tmfix()
[all …]
H A Dtmxdate.c356 tm->tm_mon += p; in tmxdate()
639 i = tm->tm_mon + 1; in tmxdate()
688 tm->tm_mon = i - 1; in tmxdate()
1130 tm->tm_mon += n; in tmxdate()
1413 tm->tm_mon += m; in tmxdate()
1489 i = tm->tm_mon; in tmxdate()
1600 n = tm->tm_mon; in tmxdate()
1601 tm->tm_mon = i; in tmxdate()
1642 tm->tm_mon = 0; in tmxdate()
1655 tm->tm_mon = n - 1; in tmxdate()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgetdate.c126 rtm.tm_mday = rtm.tm_mon = rtm.tm_year = TMSENTINEL; in getdate()
169 rtm.tm_mon == TMSENTINEL && rtm.tm_mday == TMSENTINEL) { in getdate()
171 rtm.tm_mon = tmnow.tm_mon; in getdate()
180 if (rtm.tm_mon != TMSENTINEL) { in getdate()
183 ((rtm.tm_mon < tmnow.tm_mon)? 1 : 0); in getdate()
200 tm.tm_mon = rtm.tm_mon; in getdate()
223 rtm.tm_year == TMSENTINEL && rtm.tm_mon == TMSENTINEL && in getdate()
226 rtm.tm_mon = tmnow.tm_mon; in getdate()
249 rtm.tm_mon == TMSENTINEL && rtm.tm_mday == TMSENTINEL) { in getdate()
250 rtm.tm_mon = 0; in getdate()
[all …]
H A Dstrftime.c122 pt = _add((t->tm_mon < 0 || in _fmt()
123 t->tm_mon >= MONSPERYEAR) ? in _fmt()
124 "?" : (tptr->month)[t->tm_mon], in _fmt()
129 pt = _add((t->tm_mon < 0 || in _fmt()
130 t->tm_mon >= MONSPERYEAR) ? in _fmt()
131 "?" : tptr->mon[t->tm_mon], in _fmt()
227 pt = _conv(t->tm_mon + 1, in _fmt()
351 if ((w == 52 && t->tm_mon == TM_JANUARY) || in _fmt()
352 (w == 1 && t->tm_mon == TM_DECEMBER)) in _fmt()
/illumos-gate/usr/src/cmd/cron/
H A Datt1.y74 if (at.tm_mon >= 12 || at.tm_mday > mday[at.tm_mon])
153 at.tm_mon = tp->tm_mon;
160 at.tm_mon = $1;
163 if (at.tm_mon < tp->tm_mon)
167 at.tm_mon = $1;
172 at.tm_mon = tp->tm_mon;
201 rt.tm_mon += $1;
H A Dat.c335 if (at.tm_mday > mday[at.tm_mon]) in main()
490 if ((a->tm_mon += b->tm_mon) >= 12) { in atime()
491 a->tm_year += a->tm_mon / 12; in atime()
492 a->tm_mon %= 12; in atime()
496 while (a->tm_mday > mday[a->tm_mon]) { in atime()
497 a->tm_mday -= mday[a->tm_mon++]; in atime()
498 if (a->tm_mon > 11) { in atime()
499 a->tm_mon = 0; in atime()
535 if ((leap(tptr->tm_year)) && tptr->tm_mon >= 2) in gtime()
538 for (i = 0; i < tptr->tm_mon; ++i) in gtime()
[all …]
H A Dcron.c1474 (t1)->tm_mon == (t2)->tm_mon && \
1481 (tp)->tm_mon = mon; \
1553 tm_mon = next_ge(tm->tm_mon + 1, e->of.ct.month) - 1; /* 0-11 */ in tz_next_time()
1560 (tm->tm_mon != tm_mon)) { in tz_next_time()
1575 tm_setup(&tmp, tm->tm_year, tm->tm_mon, tm->tm_mday, in tz_next_time()
1705 if ((carry1 && carry2) || (tm->tm_mon != tm_mon)) { in tz_next_time()
1707 m = tm->tm_mon + 1; in tz_next_time()
1730 mon = tm->tm_mon; in tz_next_time()
1811 tmp2.tm_mon = 0; in tz_next_time()
1814 tmp2.tm_mon = mon + 1; in tz_next_time()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dstrftime.c68 tm->tm_mon < 0 || tm->tm_mon > 11 ||
81 if (tm->tm_mon >= 0 && tm->tm_mon <= 11)
82 tl.tm_mon = tm->tm_mon;
92 tl.tm_mon = tm->tm_mon;
H A Dmktime.c59 tm.tm_mon = ts->tm_mon;
69 ts->tm_mon = tm.tm_mon;
H A Dstrptime.c60 tm.tm_mon = ts->tm_mon;
74 ts->tm_mon = tm.tm_mon;
H A Dgetdate.c75 ts.tm_mon = tm->tm_mon;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgmt_mktime.c57 assert_time(t->tm_mon>=0); in krb5int_gmt_mktime()
58 assert_time(t->tm_mon<=11); in krb5int_gmt_mktime()
80 if(t->tm_mon >= 2) /* march or later */ in krb5int_gmt_mktime()
83 accum += days_in_month[t->tm_mon]; in krb5int_gmt_mktime()
102 .tm_mon = 0, .tm_mday = 1, in main()
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c175 int month = tme->tm_mon; in tm_to_secs()
226 } else if (tme->tm_mon < 0 || tme->tm_mon > 11) { in check_time()
228 gettext("months out of range (%d)"), tme->tm_mon + 1); in check_time()
234 } else if (tme->tm_mday < 1 || tme->tm_mday > days_month[tme->tm_mon]) { in check_time()
236 tme->tm_mon == 1 && in check_time()
439 tme->tm_mon = atoi(strs) - 1; /* get months */ in derive_date()
480 (void) sprintf(buf + 4, "%.2d", gtime.tm_mon + 1); in derive_str()
/illumos-gate/usr/src/cmd/mdb/common/libstand/
H A Dctime.c86 for (tmp->tm_mon = 0; days >= (long)ip[tmp->tm_mon]; ++(tmp->tm_mon)) in localtime()
87 days = days - (long)ip[tmp->tm_mon]; in localtime()
178 tp = &t->tm_mon; in __posix_asctime_r()
/illumos-gate/usr/src/stand/lib/sa/
H A Dtime.c135 for (tmp->tm_mon = 0; days >= ip[tmp->tm_mon]; ++(tmp->tm_mon)) in gmtime()
136 days = days - ip[tmp->tm_mon]; in gmtime()
182 tp = &t->tm_mon; in asctime()
H A Dtime.h48 int tm_mon; /* months since January */ member
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_misc.c52 int tm_mon; member
132 atm.tm_mon = ((date >> 5) & 0x0F) - 1; in smb_time_dos_to_unix()
161 i += atm.tm_mon + 1; in smb_time_unix_to_dos()
235 result->tm_mon = month; in smb_gmtime_r()
284 for (mm = TM_JANUARY; mm < tm->tm_mon; ++mm) { in smb_timegm()
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c77 newtime.tm_mon = gpair() - 1; in gtime()
173 days_in_month = dmsize[tp->tm_mon]; in main()
174 if (tp->tm_mon == 1 && isleap(tp->tm_year + 1900)) in main()
176 if (tp->tm_mon < 0 || tp->tm_mon > 11 || in main()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_date.c64 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1; in ns_datetosecs()
86 for (i = 0; i < time.tm_mon; i++) in ns_datetosecs()
89 if (time.tm_mon > 1 && isleap(1900+time.tm_year)) in ns_datetosecs()
/illumos-gate/usr/src/cmd/backup/dump/
H A Dunctime.c58 then.tm_mon = lookup(&dbuf[E_MONTH]);
59 if (then.tm_mon < 0) {
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dlocaltime.c699 if (tmptr->tm_mon >= 12) { in mktime1()
700 tmptr->tm_year += tmptr->tm_mon / 12; in mktime1()
701 tmptr->tm_mon %= 12; in mktime1()
702 } else if (tmptr->tm_mon < 0) { in mktime1()
703 temp = -tmptr->tm_mon; in mktime1()
704 tmptr->tm_mon = 0; /* If tm_mon divides by 12. */ in mktime1()
708 tmptr->tm_mon = 12 - temp; in mktime1()
727 t += SECSPERDAY * __yday_to_month[tmptr->tm_mon]; in mktime1()
1230 for (tmptr->tm_mon = 0; days >= in offtime_u()
1231 (long)ip[tmptr->tm_mon]; ++(tmptr->tm_mon)) { in offtime_u()
[all …]
/illumos-gate/usr/src/cmd/listen/
H A Dlslog.c296 tm_p->tm_mon++; /* since months are 0-11 */ in stamp()
298 tm_p->tm_mon, tm_p->tm_mday, (tm_p->tm_year % 100), in stamp()
/illumos-gate/usr/src/cmd/bnu/
H A Duucleanup.c445 tp->tm_mon + 1, tp->tm_mday);
451 tp->tm_mon + 1, tp->tm_mday);
595 tp->tm_mon+1, tp->tm_mday);
599 tp->tm_mon+1, tp->tm_mday);
628 tp->tm_mon + 1, tp->tm_mday);
640 tp->tm_mon + 1, tp->tm_mday);
/illumos-gate/usr/src/cmd/zdump/
H A Dzdump.c131 (void) fprintf(stderr, " mon=%d", tmp->tm_mon);
612 if (timeptr->tm_mon < 0 || timeptr->tm_mon >=
615 else mn = mon_name[timeptr->tm_mon];
/illumos-gate/usr/src/cmd/touch/
H A Dtouch.c329 tm.tm_mon = atoi(month) - 1; in parse_datetime()
426 tm.tm_mon = atoi_for2(t) - 1; in parse_time()
470 tm.tm_mon = atoi_for2(t) - 1; in parse_timespec()

1234