Lines Matching defs:tm
65 struct tm tm, *tm1;
74 memset(&tm, 0, sizeof(tm));
75 tm.tm_year = year - 1900;
76 tm.tm_mon = month - 1;
77 tm.tm_mday = day;
78 tm.tm_hour = hour;
79 tm.tm_min = min;
80 tm.tm_sec = sec;
82 t_local = mktime(&tm);
102 int os_gmtime(os_time_t t, struct os_tm *tm)
104 struct tm *tm2;
110 tm->sec = tm2->tm_sec;
111 tm->min = tm2->tm_min;
112 tm->hour = tm2->tm_hour;
113 tm->day = tm2->tm_mday;
114 tm->month = tm2->tm_mon + 1;
115 tm->year = tm2->tm_year + 1900;