40 #ifndef LDNS_DURATION_H
41 #define LDNS_DURATION_H
time_t ldns_duration2time(const ldns_duration_type *duration)
Convert a duration to a time.
void ldns_duration_cleanup(ldns_duration_type *duration)
Clean up duration.
char * ldns_duration2string(const ldns_duration_type *duration)
Convert a duration to a string.
ldns_duration_type * ldns_duration_create_from_string(const char *str)
Create a duration from string.
int ldns_duration_compare(const ldns_duration_type *d1, const ldns_duration_type *d2)
Compare durations.
ldns_duration_type * ldns_duration_create(void)
Create a new 'instant' duration.