Lines Matching refs:tm

116 	Tm_t*		tm;
126 tm = tmxtm(&ts, t, NiL);
247 n = TM_DAY_ABBREV + tm->tm_wday;
250 n = TM_DAY + tm->tm_wday;
254 n = TM_MONTH_ABBREV + tm->tm_mon;
257 n = TM_MONTH + tm->tm_mon;
263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad);
266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad);
272 cp = number(cp, ep, (long)tm->tm_mday, 0, width, pad);
275 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad);
285 n = tm->tm_year + 1900;
286 if (tm->tm_yday < 7)
288 if (tmweek(tm, 2, -1, -1) >= 52)
291 else if (tm->tm_yday > 358)
293 if (tmweek(tm, 2, -1, -1) <= 1)
306 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad);
312 if ((n = tm->tm_hour) > 12) n -= 12;
317 cp = number(cp, ep, (long)tm->tm_yday, 3, width, pad);
320 cp = number(cp, ep, (long)(tm->tm_yday + 1), 3, width, pad);
356 cp = number(cp, ep, (long)(tm->tm_mon + 1), 2, width, pad);
359 cp = number(cp, ep, (long)tm->tm_min, 2, width, pad);
366 cp = number(cp, ep, (long)tm->tm_nsec, 9, width, pad);
375 n = TM_MERIDIAN + (tm->tm_hour >= 12);
380 if ((zp = tm->tm_zone) != tm_info.local)
457 cp = number(cp, ep, (long)tm->tm_sec, 2, width, pad);
472 if (!(i = tm->tm_wday))
477 cp = number(cp, ep, (long)tmweek(tm, 0, -1, -1), 2, width, pad);
480 cp = number(cp, ep, (long)tmweek(tm, 2, -1, -1), 2, width, pad);
483 cp = number(cp, ep, (long)tmweek(tm, 1, -1, -1), 2, width, pad);
486 cp = number(cp, ep, (long)tm->tm_wday, 0, width, pad);
495 cp = number(cp, ep, (long)(tm->tm_year % 100), 2, width, pad);
498 cp = number(cp, ep, (long)(1900 + tm->tm_year), 4, width, pad);
503 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp)
504 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp);
508 cp = tmpoff(cp, ep - cp, "", (flags & TM_UTC) ? 0 : tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0), 24 * 60);
513 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp)
514 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp);
517 p = (flags & TM_UTC) ? tm_info.format[TM_UT] : tm->tm_isdst && tm->tm_zone->daylight ? tm->tm_zone->daylight : tm->tm_zone->standard;
590 tm = tmxtm(tm, t, (flags & TM_UTC) ? &tm_data.zone[2] : tm->tm_zone);
599 tm = tmxtm(tm, t, (flags & TM_UTC) ? &tm_data.zone[2] : tm->tm_zone);