HELPLIB.HLB  —  DECdts  utc_mkascreltime, Example
    The following example converts an ASCII relative time string to
    its binary equivalent.

    utc_t      utc;
    char       str[UTC_MAX_STR_LEN];

    /*
     * Relative time of 333 days, 12 hours, 1 minute, 37.223 seconds
     * Inaccuracy of 50.22 sec. in the format: -333-12:01:37.223I50.22
     */

    (void)strcpy((void *)str,
                 "-333-12:01:37.223I50.22");

    utc_mkascreltime(&utc,   /* Out: Binary utc               */
                     str);   /* In:  String                   */
Close Help