Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ utc_mkbinreltime(3dts) — DCE 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

utc_mkbinreltime(3dts)  —  Subroutines

Name

utc_mkbinreltime - 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

timespA reltimespec structure that expresses a relative time. 

inaccspA 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

utcResulting relative binary timestamp. 

Description

The utc_mkbinreltime() routine converts a timespec structure that expresses relative time to a binary timestamp. 

Return Values

 0Indicates that the routine executed successfully. 

-1Indicates 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). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026