/sys$common/syshlp/HELPLIB.HLB  —  DECdts  utc_ascanytime, Example
    The following example converts a time to an ASCII string that
    expresses the time in the time zone where the timestamp was
    generated.

    utc_t      evnt;
    char       localTime[UTC_MAX_STR_LEN];

    /*
     *   Assuming that evnt contains the timestamp to convert, convert
     *   the time to ASCII in the following format:
     *
     *          1991-04-01-12:27:38.37-8:00I2.00
     */

    utc_ascanytime(localtime,         /* Out: Converted time      */
                   UTC_MAX_STR_LEN,   /* In:  Length of string    */
                   &evnt);            /* In:  Time to convert     */
Close Help