Lines Matching defs:tm
76 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
78 struct tm *ts = NULL;
91 memcpy(result, ts, sizeof(struct tm));
197 /* Fill in the struct tm with the result */
224 /* Take a tm structure and add an offset to it. This avoids any OS issues
234 int OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec)
245 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec;
261 time_year = tm->tm_year + 1900;
262 time_month = tm->tm_mon + 1;
263 time_day = tm->tm_mday;
280 /* Update tm structure */
282 tm->tm_year = time_year - 1900;
283 tm->tm_mon = time_month - 1;
284 tm->tm_mday = time_day;
286 tm->tm_hour = offset_hms / 3600;
287 tm->tm_min = (offset_hms / 60) % 60;
288 tm->tm_sec = offset_hms % 60;
344 struct tm tm1, tm2;