Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>timetosec()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TIMETOSEC()

Syntax:     TIMETOSEC(<expC>)

Arguments:  <expC> is a string which contains a time string.

Returns:    A numeric value.
            The value indicates the number of seconds that have
            elapsed since midnight for the <expC> time.

Usage:      It is simpler to work with "seconds after midnight" when
            calculating time spans or when adding times, than to use
            time strings.  The function SECTOTIME() can be used to
            convert the result back into a time string.

Notes:      -1 is returned if the time string <expC> is invalid.
            TIMETOSEC() will only return whole numbers, no hundredths
            are returned since they are in seconds.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Calculate the time interval between two times.
            * The result should be displayed in seconds.

            start = "12:55"
            finish = "14:56"

            ? TIMETOSEC(finish) - TIMETOSEC(start)

            * The result corresponds to the time interval
            * in seconds.



See Also: SECTOTIME()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson