Lines Matching refs:tmp

184 				struct tm * tmp));
186 struct tm * tmp, const struct state *sp));
195 static time_t time1 P((struct tm * tmp,
199 static time_t time2 P((struct tm *tmp,
203 static time_t time2sub P((struct tm *tmp,
208 const struct state * sp, struct tm * tmp));
1181 localsub(timep, offset, tmp, sp)
1184 struct tm * const tmp;
1194 return gmtsub(timep, offset, tmp);
1221 result = localsub(&newt, offset, tmp, sp);
1222 if (result == tmp) {
1225 newy = tmp->tm_year;
1229 tmp->tm_year = newy;
1230 if (tmp->tm_year != newy)
1260 ** timesub(&t, 0L, sp, tmp);
1262 result = timesub(&t, ttisp->tt_gmtoff, sp, tmp);
1263 tmp->tm_isdst = ttisp->tt_isdst;
1265 tmp->tm_gmtoff = ttisp->tt_gmtoff;
1267 tzname[tmp->tm_isdst] = &sp->chars[ttisp->tt_abbrind];
1269 tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind];
1292 localtime_tz(const time_t * const timep, struct tm * tmp, const char* tz)
1300 localsub(timep, 0L, tmp, &st);
1308 gmtsub(timep, offset, tmp)
1311 struct tm * const tmp;
1323 result = timesub(timep, offset, gmtptr, tmp);
1331 tmp->TM_ZONE = wildabbr;
1335 tmp->TM_ZONE = gmt;
1336 else tmp->TM_ZONE = gmtptr->chars;
1339 tmp->TM_ZONE = gmtptr->chars;
1363 gmtime_r(timep, tmp)
1365 struct tm * tmp;
1367 return gmtsub(timep, 0L, tmp);
1400 timesub(timep, offset, sp, tmp)
1404 register struct tm * const tmp;
1498 tmp->tm_year = y;
1499 if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE))
1501 tmp->tm_yday = idays;
1505 tmp->tm_wday = EPOCH_WDAY +
1511 tmp->tm_wday %= DAYSPERWEEK;
1512 if (tmp->tm_wday < 0)
1513 tmp->tm_wday += DAYSPERWEEK;
1514 tmp->tm_hour = (int) (rem / SECSPERHOUR);
1516 tmp->tm_min = (int) (rem / SECSPERMIN);
1521 tmp->tm_sec = (int) (rem % SECSPERMIN) + hit;
1523 for (tmp->tm_mon = 0; idays >= ip[tmp->tm_mon]; ++(tmp->tm_mon))
1524 idays -= ip[tmp->tm_mon];
1525 tmp->tm_mday = (int) (idays + 1);
1526 tmp->tm_isdst = 0;
1528 tmp->TM_GMTOFF = offset;
1530 return tmp;
1660 time2sub(tmp, funcp, offset, okayp, do_norm_secs, sp)
1661 struct tm * const tmp;
1680 yourtm = *tmp;
1839 if ((*funcp)(&t, offset, tmp, sp))
1845 time2(tmp, funcp, offset, okayp, sp)
1846 struct tm * const tmp;
1860 t = time2sub(tmp, funcp, offset, okayp, FALSE, sp);
1861 return *okayp ? t : time2sub(tmp, funcp, offset, okayp, TRUE, sp);
1865 time1(tmp, funcp, offset, sp)
1866 struct tm * const tmp;
1880 if (tmp->tm_isdst > 1)
1881 tmp->tm_isdst = 1;
1882 t = time2(tmp, funcp, offset, &okay, sp);
1890 if (tmp->tm_isdst < 0)
1891 tmp->tm_isdst = 0; /* reset to std and try again */
1894 if (okay || tmp->tm_isdst < 0)
1920 if (sp->ttis[samei].tt_isdst != tmp->tm_isdst)
1924 if (sp->ttis[otheri].tt_isdst == tmp->tm_isdst)
1926 tmp->tm_sec += sp->ttis[otheri].tt_gmtoff -
1928 tmp->tm_isdst = !tmp->tm_isdst;
1929 t = time2(tmp, funcp, offset, &okay, sp);
1932 tmp->tm_sec -= sp->ttis[otheri].tt_gmtoff -
1934 tmp->tm_isdst = !tmp->tm_isdst;
1942 mktime_tz(struct tm * const tmp, char const * tz)
1949 return time1(tmp, localsub, 0L, &st);