Home
last modified time | relevance | path

Searched refs:tm_year (Results 1 – 25 of 90) sorted by relevance

1234

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgetdate.c126 rtm.tm_mday = rtm.tm_mon = rtm.tm_year = TMSENTINEL; in getdate()
170 rtm.tm_year = tmnow.tm_year; in getdate()
181 if (rtm.tm_year == TMSENTINEL) { in getdate()
182 rtm.tm_year = tmnow.tm_year + in getdate()
199 tm.tm_year = rtm.tm_year; in getdate()
225 rtm.tm_year = tmnow.tm_year; in getdate()
248 if (rtm.tm_year != TMSENTINEL && in getdate()
263 tm.tm_year = rtm.tm_year; in getdate()
279 if (rtm.tm_year != TMSENTINEL && (rtm.tm_year - 1900) >= 0) { in getdate()
280 rtm.tm_year -= 1900; in getdate()
[all …]
H A Dstrftime.c142 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt()
311 year = t->tm_year; in _fmt()
393 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1, in _fmt()
397 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1, in _fmt()
/illumos-gate/usr/src/cmd/cron/
H A Datt1.y76 if (at.tm_year >= 1900)
77 at.tm_year -= 1900;
78 if (at.tm_year < 70 || at.tm_year >= 139)
154 at.tm_year = tp->tm_year;
162 at.tm_year = tp->tm_year;
164 at.tm_year++;
169 at.tm_year = $4;
174 at.tm_year = tp->tm_year;
204 rt.tm_year += $1;
H A Dat.c333 mday[1] = 28 + leap(at.tm_year); in main()
489 a->tm_year += b->tm_year; in atime()
491 a->tm_year += a->tm_mon / 12; in atime()
495 mday[1] = 28 + leap(a->tm_year); in atime()
500 mday[1] = 28 + leap(++a->tm_year); in atime()
535 if ((leap(tptr->tm_year)) && tptr->tm_mon >= 2) in gtime()
953 tm.tm_year = localtime(&when)->tm_year; in parse_time()
961 tm.tm_year = atoi_for2(t); in parse_time()
964 if (tm.tm_year < 69) in parse_time()
965 tm.tm_year += 100; in parse_time()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmfix.c34 #define LEAP(p) (tmisleapyear((p)->tm_year))
58 …if (w = !tm->tm_sec && !tm->tm_min && !tm->tm_mday && !tm->tm_year && !tm->tm_yday && !tm->tm_isds… in tmfix()
60 tm->tm_year = 99; in tmfix()
110 tm->tm_year += tm->tm_mon / 12; in tmfix()
115 tm->tm_year--; in tmfix()
118 tm->tm_year += tm->tm_mon / 12; in tmfix()
124 tm->tm_year--; in tmfix()
130 tm->tm_year++; in tmfix()
137 tm->tm_year--; in tmfix()
147 tm->tm_year++; in tmfix()
[all …]
H A Dtmxtime.c63 y = tm->tm_year; in tmxtime()
93 y = tm->tm_year; in tmxtime()
94 tm->tm_year = tmequiv(tm) - 1900; in tmxtime()
96 tm->tm_year = y; in tmxtime()
110 y = tm->tm_year; in tmxtime()
111 tm->tm_year = tmequiv(tm) - 1900; in tmxtime()
114 tm->tm_year = y; in tmxtime()
H A Dtmequiv.c56 …return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->t… in tmequiv()
H A Dtmxmake.c99 tm->tm_year = (400 * (x + 25202)) / 146097 + 1; in tmxtm()
100 n = tm->tm_year - 1; in tmxtm()
110 if ((y = tmequiv(tm) - 1900) == tm->tm_year) in tmxtm()
117 te.tm_year = y; in tmxtm()
H A Dtmxdate.c320 tm->tm_year += p; in tmxdate()
649 tm->tm_year++; in tmxdate()
735 tm->tm_year = m; in tmxdate()
912 m = tm->tm_year; in tmxdate()
965 tm->tm_year = m; in tmxdate()
1124 tm->tm_year += n; in tmxdate()
1417 tm->tm_year += m; in tmxdate()
1511 tm->tm_year += f; in tmxdate()
1570 tm->tm_year = n - 1900; in tmxdate()
1635 tm->tm_year = n - 1900; in tmxdate()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgmt_mktime.c54 assert_time(t->tm_year>=1); in krb5int_gmt_mktime()
55 assert_time(t->tm_year<=138); in krb5int_gmt_mktime()
71 accum = t->tm_year - 70; in krb5int_gmt_mktime()
75 if (t->tm_year >= 70) in krb5int_gmt_mktime()
76 accum += (t->tm_year - 69) / 4; in krb5int_gmt_mktime()
78 accum -= (72 - t->tm_year) / 4; in krb5int_gmt_mktime()
81 if(hasleapday((t->tm_year + 1900))) accum += 1; in krb5int_gmt_mktime()
108 tm.tm_year = yr; in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dstrftime.c69 tm->tm_year < 0 || tm->tm_year > (2138 - 1900))
83 if (tm->tm_year >= 0 && tm->tm_year <= (2138 - 1900))
84 tl.tm_year = tm->tm_year;
93 tl.tm_year = tm->tm_year;
H A Dmktime.c60 tm.tm_year = ts->tm_year;
70 ts->tm_year = tm.tm_year;
H A Dstrptime.c61 tm.tm_year = ts->tm_year;
75 ts->tm_year = tm.tm_year;
H A Dgetdate.c76 ts.tm_year = tm->tm_year;
/illumos-gate/usr/src/cmd/touch/
H A Dtouch.c328 tm.tm_year = atoi(year) - 1900; in parse_datetime()
409 tm.tm_year = localtime(&when)->tm_year; in parse_time()
417 tm.tm_year = atoi_for2(t); in parse_time()
420 if (tm.tm_year < 69) in parse_time()
421 tm.tm_year += 100; in parse_time()
423 tm.tm_year += (century - 19) * 100; in parse_time()
461 tm.tm_year = localtime(&when)->tm_year; in parse_timespec()
465 tm.tm_year = atoi_for2(t+8); in parse_timespec()
466 if (tm.tm_year < 69) in parse_timespec()
467 tm.tm_year += 100; in parse_timespec()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_date.c63 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; in ns_datetosecs()
89 if (time.tm_mon > 1 && isleap(1900+time.tm_year)) in ns_datetosecs()
93 result += (time.tm_year - 70) * (SECS_PER_DAY*365); /*%< Years */ in ns_datetosecs()
94 for (i = 70; i < time.tm_year; i++) in ns_datetosecs()
/illumos-gate/usr/src/stand/lib/sa/
H A Dtime.c132 tmp->tm_year = y - TM_YEAR_BASE; in gmtime()
192 if (t->tm_year < 100) { in asctime()
195 } else if (t->tm_year < 8100) { in asctime()
196 cp = ct_numb(cp, (1900 + t->tm_year) / 100); in asctime()
203 (void) ct_numb(cp, t->tm_year + 100); in asctime()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Darpadate.c133 if (lt->tm_year < gmt.tm_year)
135 else if (lt->tm_year > gmt.tm_year)
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_misc.c53 int tm_year; member
131 atm.tm_year = ((date >> 9) & 0x3F) + 80; in smb_time_dos_to_unix()
159 i += atm.tm_year - 80; in smb_time_unix_to_dos()
220 result->tm_year = year - TM_YEAR_BASE; in smb_gmtime_r()
274 year = tm->tm_year + TM_YEAR_BASE; in smb_timegm()
/illumos-gate/usr/src/cmd/mdb/common/libstand/
H A Dctime.c83 tmp->tm_year = y - TM_YEAR_BASE; in localtime()
187 if (t->tm_year > 9999) { in __posix_asctime_r()
191 uint_t hun = 19 + (t->tm_year / 100); in __posix_asctime_r()
196 cp = ct_numb(cp, t->tm_year+100); in __posix_asctime_r()
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c86 newtime.tm_year = gpair(); in gtime()
87 if (newtime.tm_year < 0) { in gtime()
89 newtime.tm_year = localtime(&nt)->tm_year; in gtime()
174 if (tp->tm_mon == 1 && isleap(tp->tm_year + 1900)) in main()
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c176 int year = tme->tm_year + 1900; in tm_to_secs()
230 } else if (tme->tm_year < 0) { in check_time()
232 gettext("years out of range (%d)"), tme->tm_year); in check_time()
235 if (!(days_in_year(tme->tm_year + 1900) == 366 && in check_time()
436 tme->tm_year = atoi(strs) - 1900; /* get the year */ in derive_date()
479 (void) sprintf(buf, "%4d", gtime.tm_year + 1900); in derive_str()
/illumos-gate/usr/src/cmd/zdump/
H A Dzdump.c130 (void) fprintf(stderr, " year=%d", tmp->tm_year);
480 if (newp->tm_year < oldp->tm_year)
483 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy)
621 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
622 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR +
/illumos-gate/usr/src/cmd/acct/lib/
H A Dpnpsplit.c152 tp->tm_year += 1900; in checkhol()
153 if ((tp->tm_year == thisyear && tp->tm_yday > 359) in checkhol()
154 || tp->tm_year > thisyear) in checkhol()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Deventlog_log.c125 tm.tm_year = cur_tm.tm_year; in logr_syslog_set_timestamp()
127 tm.tm_year--; in logr_syslog_set_timestamp()

1234