Lines Matching refs:tm
62 struct tm tm; in ldns_str2rdf_time() local
70 memset(&tm, 0, sizeof(tm)); in ldns_str2rdf_time()
73 …sscanf(time, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, … in ldns_str2rdf_time()
75 tm.tm_year -= 1900; in ldns_str2rdf_time()
76 tm.tm_mon--; in ldns_str2rdf_time()
78 if (tm.tm_year < 70) { in ldns_str2rdf_time()
81 if (tm.tm_mon < 0 || tm.tm_mon > 11) { in ldns_str2rdf_time()
84 if (tm.tm_mday < 1 || tm.tm_mday > 31) { in ldns_str2rdf_time()
88 if (tm.tm_hour < 0 || tm.tm_hour > 23) { in ldns_str2rdf_time()
92 if (tm.tm_min < 0 || tm.tm_min > 59) { in ldns_str2rdf_time()
96 if (tm.tm_sec < 0 || tm.tm_sec > 59) { in ldns_str2rdf_time()
100 l = htonl(ldns_mktime_from_utc(&tm)); in ldns_str2rdf_time()