Lines Matching defs:tm
58 struct tm tm;
65 os_memset(&tm, 0, sizeof(tm));
66 tm.tm_year = year - 1900;
67 tm.tm_mon = month - 1;
68 tm.tm_mday = day;
69 tm.tm_hour = hour;
70 tm.tm_min = min;
71 tm.tm_sec = sec;
73 *t = (os_time_t) mktime(&tm);
78 int os_gmtime(os_time_t t, struct os_tm *tm)
80 struct tm *tm2;
86 tm->sec = tm2->tm_sec;
87 tm->min = tm2->tm_min;
88 tm->hour = tm2->tm_hour;
89 tm->day = tm2->tm_mday;
90 tm->month = tm2->tm_mon + 1;
91 tm->year = tm2->tm_year + 1900;