Home | History | Annotate | Download | only in Time

Lines Matching refs:yourtm

260   struct tm                     yourtm, mytm;

263 yourtm = *tmp; // Create a copy of tmp
265 if (normalize_overflow(&yourtm.tm_min, &yourtm.tm_sec,
269 if (normalize_overflow(&yourtm.tm_hour, &yourtm.tm_min, MINSPERHOUR))
271 if (normalize_overflow(&yourtm.tm_mday, &yourtm.tm_hour, HOURSPERDAY))
273 if (normalize_overflow(&yourtm.tm_year, &yourtm.tm_mon, MONSPERYEAR))
276 ** Turn yourtm.tm_year into an actual year number for now.
279 if (increment_overflow(&yourtm.tm_year, TM_YEAR_BASE))
281 while (yourtm.tm_mday <= 0) {
282 if (increment_overflow(&yourtm.tm_year, -1))
284 i = yourtm.tm_year + (1 < yourtm.tm_mon);
285 yourtm.tm_mday += year_lengths[isleap(i)];
287 while (yourtm.tm_mday > DAYSPERLYEAR) {
288 i = yourtm.tm_year + (1 < yourtm.tm_mon);
289 yourtm.tm_mday -= year_lengths[isleap(i)];
290 if (increment_overflow(&yourtm.tm_year, 1))
294 i = mon_lengths[isleap(yourtm.tm_year)][yourtm.tm_mon];
295 if (yourtm.tm_mday <= i)
297 yourtm.tm_mday -= i;
298 if (++yourtm.tm_mon >= MONSPERYEAR) {
299 yourtm.tm_mon = 0;
300 if (increment_overflow(&yourtm.tm_year, 1))
304 if (increment_overflow(&yourtm.tm_year, -TM_YEAR_BASE))
306 if (yourtm.tm_sec >= 0 && yourtm.tm_sec < SECSPERMIN)
308 else if (yourtm.tm_year + TM_YEAR_BASE < EPOCH_YEAR) {
317 if (increment_overflow(&yourtm.tm_sec, 1 - SECSPERMIN))
319 saved_seconds = yourtm.tm_sec;
320 yourtm.tm_sec = SECSPERMIN - 1;
322 saved_seconds = yourtm.tm_sec;
323 yourtm.tm_sec = 0;
340 dir = tmcomp(&mytm, &yourtm); // Is mytm larger, equal, or less than yourtm?
341 if (dir != 0) { // If mytm != yourtm...
346 else if (dir > 0) // else if mytm > yourtm...
351 if (yourtm.tm_isdst < 0 || mytm.tm_isdst == yourtm.tm_isdst)
370 if (sp->ttis[i].tt_isdst != yourtm.tm_isdst)
373 if (sp->ttis[j].tt_isdst == yourtm.tm_isdst)
378 if (tmcomp(&mytm, &yourtm) != 0)
380 if (mytm.tm_isdst != yourtm.tm_isdst)