Lines Matching defs:pt
297 maketime (pt, default_time)
298 struct partime const *pt;
308 localzone = pt->zone == TM_LOCAL_ZONE;
310 tm = pt->tm;
314 && TM_DEFINED (wday) && TM_DEFINED (pt->wday_ordinal));
316 if (use_ordinal_day || TM_DEFINED (pt->ymodulus) || !TM_DEFINED (year))
321 adjzone (tm0, pt->zone);
327 + 7 * (pt->wday_ordinal - (pt->wday_ordinal != 0))));
329 if (TM_DEFINED (pt->ymodulus))
333 int y0 = MOD (year0, pt->ymodulus);
335 year += (((year0 - y0) / pt->ymodulus
336 + (pt->ymodulus < d ? -1 : d < -pt->ymodulus))
337 * pt->ymodulus);
369 adjzone (&tm, -pt->zone);
385 if (pt->tmr.tm_year | pt->tmr.tm_mon | pt->tmr.tm_mday
386 | pt->tmr.tm_hour | pt->tmr.tm_min)
388 int years = tm.tm_year + pt->tmr.tm_year;
389 int mons = tm.tm_mon + pt->tmr.tm_mon;
390 int mdays = tm.tm_mday + pt->tmr.tm_mday;
391 int hours = tm.tm_hour + pt->tmr.tm_hour;
392 int mins = tm.tm_min + pt->tmr.tm_min;
411 if (overflow_sum_sign (tm.tm_year, pt->tmr.tm_year, years)
412 | overflow_sum_sign (tm.tm_mon, pt->tmr.tm_mon, mons)
413 | overflow_sum_sign (tm.tm_mday, pt->tmr.tm_mday, mdays)
414 | overflow_sum_sign (tm.tm_hour, pt->tmr.tm_hour, hours)
415 | overflow_sum_sign (tm.tm_min, pt->tmr.tm_min, mins)
453 time_t rs = r + pt->tmr.tm_sec;
454 if ((pt->tmr.tm_sec < 0) != (rs < r))
473 struct partime pt;
475 *source = partime (*source, &pt);
476 if (pt.zone == TM_UNDEFINED_ZONE)
477 pt.zone = default_zone;
478 return maketime (&pt, default_time);