Lines Matching defs:tm
190 struct tm *ts;
191 struct tm data;
230 struct tm *tm;
231 struct tm data;
248 tm = OPENSSL_gmtime(&t, &data);
254 return_cmp(year, tm->tm_year);
255 return_cmp(g2(s->data+2) - 1, tm->tm_mon);
256 return_cmp(g2(s->data+4), tm->tm_mday);
257 return_cmp(g2(s->data+6), tm->tm_hour);
258 return_cmp(g2(s->data+8), tm->tm_min);
259 return_cmp(g2(s->data+10), tm->tm_sec);
270 struct tm tm;
273 memset(&tm,'\0',sizeof tm);
276 tm.tm_year=g2(s->data);
277 if(tm.tm_year < 50)
278 tm.tm_year+=100;
279 tm.tm_mon=g2(s->data+2)-1;
280 tm.tm_mday=g2(s->data+4);
281 tm.tm_hour=g2(s->data+6);
282 tm.tm_min=g2(s->data+8);
283 tm.tm_sec=g2(s->data+10);
294 return mktime(&tm)-offset*60; /* FIXME: mktime assumes the current timezone