Lines Matching refs:tm
68 int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d) in asn1_utctime_to_tm() argument
86 if (tm) in asn1_utctime_to_tm()
87 tm->tm_sec = 0; in asn1_utctime_to_tm()
104 if (tm) { in asn1_utctime_to_tm()
107 tm->tm_year = n < 50 ? n + 100 : n; in asn1_utctime_to_tm()
110 tm->tm_mon = n - 1; in asn1_utctime_to_tm()
113 tm->tm_mday = n; in asn1_utctime_to_tm()
116 tm->tm_hour = n; in asn1_utctime_to_tm()
119 tm->tm_min = n; in asn1_utctime_to_tm()
122 tm->tm_sec = n; in asn1_utctime_to_tm()
144 if (tm) { in asn1_utctime_to_tm()
152 if (offset && !OPENSSL_gmtime_adj(tm, 0, offset * offsign)) in asn1_utctime_to_tm()
193 struct tm *ts; in ASN1_UTCTIME_adj()
194 struct tm data; in ASN1_UTCTIME_adj()
243 struct tm stm, ttm; in ASN1_UTCTIME_cmp_time_t()
269 struct tm tm;
272 OPENSSL_memset(&tm, '\0', sizeof tm);
275 tm.tm_year = g2(s->data);
276 if (tm.tm_year < 50)
277 tm.tm_year += 100;
278 tm.tm_mon = g2(s->data + 2) - 1;
279 tm.tm_mday = g2(s->data + 4);
280 tm.tm_hour = g2(s->data + 6);
281 tm.tm_min = g2(s->data + 8);
282 tm.tm_sec = g2(s->data + 10);
292 return mktime(&tm) - offset * 60; /* FIXME: mktime assumes the current