Lines Matching defs:tm
42 * with other tm*() that may return static Tm_t*
46 tmxtime(register Tm_t* tm, int west)
54 struct tm* tl;
58 ts = *tm;
59 to = tm;
60 tm = &ts;
62 tmfix(tm);
63 y = tm->tm_year;
68 if ((n = tm->tm_mon) > 11)
73 t += tm_data.sum[n] + tm->tm_mday - 1;
75 t += tm->tm_hour;
77 t += tm->tm_min;
79 t += sec = tm->tm_sec;
90 tm->tm_isdst = 0;
93 y = tm->tm_year;
94 tm->tm_year = tmequiv(tm) - 1900;
95 now = tmxsec(tmxtime(tm, tm_info.zone->west));
96 tm->tm_year = y;
99 if (tm->tm_isdst = tl->tm_isdst)
107 tm->tm_isdst = 0;
108 else if (tm->tm_isdst < 0)
110 y = tm->tm_year;
111 tm->tm_year = tmequiv(tm) - 1900;
112 tm->tm_isdst = 0;
113 now = tmxsec(tmxtime(tm, tm_info.zone->west));
114 tm->tm_year = y;
117 tm->tm_isdst = tl->tm_isdst;
121 else if (tm->tm_isdst)
122 tm->tm_isdst = 0;
123 *to = *tm;
136 return tmxsns(t, tm->tm_nsec);