Lines Matching defs: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, -2, width, pad);
282 n = tm->tm_year + 1900;
283 if (tm->tm_yday < 7)
285 if (tmweek(tm, 2, -1, -1) >= 52)
288 else if (tm->tm_yday > 358)
290 if (tmweek(tm, 2, -1, -1) <= 1)
303 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad);
309 if ((n = tm->tm_hour) > 12) n -= 12;
314 cp = number(cp, ep, (long)(tm->tm_yday + 1), 3, width, pad);
317 cp = number(cp, ep, (long)tm->tm_yday, 3, width, pad);
343 cp = number(cp, ep, (long)(tm->tm_mon + 1), 2, width, pad);
346 cp = number(cp, ep, (long)tm->tm_min, 2, width, pad);
353 cp = number(cp, ep, (long)tm->tm_nsec, 9, width, pad);
360 n = TM_MERIDIAN + (tm->tm_hour >= 12);
363 p = tm_info.format[TM_MERIDIAN + (tm->tm_hour >= 12)];
452 tm = tmxtm(tm, t, (flags & TM_UTC) ? &tm_data.zone[2] : tm->tm_zone);
461 tm = tmxtm(tm, t, (flags & TM_UTC) ? &tm_data.zone[2] : tm->tm_zone);
474 if ((zp = tm->tm_zone) != tm_info.local)
537 cp = number(cp, ep, (long)tm->tm_sec, 2, width, pad);
552 if (!(i = tm->tm_wday))
557 cp = number(cp, ep, (long)tmweek(tm, 0, -1, -1), 2, width, pad);
564 cp = number(cp, ep, (long)tmweek(tm, 2, -1, -1), 2, width, pad);
567 cp = number(cp, ep, (long)tmweek(tm, 1, -1, -1), 2, width, pad);
570 cp = number(cp, ep, (long)tm->tm_wday, 0, width, pad);
579 cp = number(cp, ep, (long)(tm->tm_year % 100), 2, width, pad);
582 cp = number(cp, ep, (long)(1900 + tm->tm_year), 4, width, pad);
587 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp)
588 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp);
592 cp = tmpoff(cp, ep - cp, "", (flags & TM_UTC) ? 0 : tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0), pad == '_' ? -24 * 60 : 24 * 60);
597 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp)
598 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp);
601 p = (flags & TM_UTC) ? tm_info.format[TM_UT] : tm->tm_isdst && tm->tm_zone->daylight ? tm->tm_zone->daylight : tm->tm_zone->standard;
670 tm = tmxtm(tm, t, (flags & TM_UTC) ? &tm_data.zone[2] : tm->tm_zone);
679 tm = tmxtm(tm, t, (flags & TM_UTC) ? &tm_data.zone[2] : tm->tm_zone);