ldns - Online Linux Manual PageSection : 3
Updated : 30 May 2006

NAMEldns_duration_type, ldns_duration_create, ldns_duration_create_from_string, ldns_duration_cleanup, ldns_duration_compare, ldns_duration2string, ldns_duration2time − duration type and related functions

SYNOPSIS#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h> ldns_duration_type* ldns_duration_create(void); ldns_duration_type* ldns_duration_create_from_string(const char* str); void ldns_duration_cleanup(ldns_duration_type* duration); int ldns_duration_compare(const ldns_duration_type* d1, const ldns_duration_type* d2); char* ldns_duration2string(const ldns_duration_type* duration); time_t ldns_duration2time(const ldns_duration_type* duration);

DESCRIPTIONldns_duration_type
Duration.

struct ldns_duration_struct
{

    time_t years;

    time_t months;

    time_t weeks;

    time_t days;

    time_t hours;

    time_t minutes;

    time_t seconds;
};

typedef struct ldns_duration_struct ldns_duration_type;
ldns_duration_create() Create a new 'instant' duration.
Returns ldns_duration_type* created duration
ldns_duration_create_from_string() Create a duration from string.
str: string-format duration
Returns ldns_duration_type* created duration
ldns_duration_cleanup() Clean up duration.
duration: duration to be cleaned up
ldns_duration_compare() Compare durations.
d1: one duration
d2: another duration
Returns int 0 if equal, -1 if d1 < d2, 1 if d2 < d1
ldns_duration2string() Convert a duration to a string.
duration: duration to be converted
Returns char* string-format duration
ldns_duration2time() Convert a duration to a time.
duration: duration to be converted
Returns time_t time-format duration

AUTHORThe ldns team at NLnet Labs.

REPORTING BUGSPlease report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html

COPYRIGHTCopyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSOperldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

REMARKSThis manpage was automatically generated from the ldns source code.
0
Johanes Gumabo
Data Size   :   10,144 byte
man-ldns_duration2time.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 239,189
Visitor ID   :     :  
Visitor IP   :   3.145.97.1   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.