Lines Matching defs:tm
33 struct tm tm;
46 tm.tm_year = 70;
48 if (tm.tm_year == 0)
50 tm.tm_year--;
51 secs = year_secs(tm.tm_year + 1900);
54 while ((secs = year_secs(tm.tm_year + 1900)) <= t) {
56 tm.tm_year++;
57 if (tm.tm_year + 1900 > 9999)
60 tm.tm_mon = 0;
61 while ((secs = month_secs(tm.tm_mon, tm.tm_year + 1900)) <= t) {
63 tm.tm_mon++;
65 tm.tm_mday = 1;
68 tm.tm_mday++;
70 tm.tm_hour = 0;
73 tm.tm_hour++;
75 tm.tm_min = 0;
78 tm.tm_min++;
80 tm.tm_sec = (int)t;
83 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
84 tm.tm_hour, tm.tm_min, tm.tm_sec);