utc_mkbinreltime(3dts)
Converts a timespec structure expressing a relative time to a binary timestamp
Synopsis
#include <dce/utc.h> int utc_mkbinreltime( utc_t *utc, reltimespec_t *timesp,
timespec_t *inaccsp);
Parameters
Input
timesp A reltimespec structure that expresses a relative time.
inaccsp A timespec structure that expresses inaccuracy. If a null pointer is passed, or if tv_sec is set to a value of 1, the inaccuracy is
considered to be unspecified.
Output
utc Resulting relative binary timestamp.
Description The utc_mkbinreltime( ) routine converts a timespec structure that expresses relative time to a binary timestamp.
Return Values ~0 Indicates that the routine executed successfully.
1 Indicates an invalid time argument or invalid results.
Examples See the sample program in the utc_addtime(3dts) reference page.
Related Information Functions:
utc_binreltime(3dts)
utc_mkbintime(3dts)
|