Lines Matching defs:tm
194 ldns_mktime_from_utc(const struct tm *tm)
196 int year = 1900 + tm->tm_year;
203 for (i = 0; i < tm->tm_mon; ++i) {
206 if (tm->tm_mon > 1 && is_leap_year(year)) {
209 days += tm->tm_mday - 1;
211 hours = days * 24 + tm->tm_hour;
212 minutes = hours * 60 + tm->tm_min;
213 seconds = minutes * 60 + tm->tm_sec;
219 mktime_from_utc(const struct tm *tm)
221 return ldns_mktime_from_utc(tm);
227 ldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result)
248 ldns_mon_and_mday_from_year_and_yday(struct tm *result)
262 ldns_wday_from_year_and_yday(struct tm *result)
274 static struct tm *
275 ldns_gmtime64_r(int64_t clock, struct tm *result)
303 struct tm *
304 ldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result)