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>sectotime()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SECTOTIME()

Syntax:     SECTOTIME(<expN>)

Arguments:  <expN> denotes the seconds elapsed since midnight which
            should be converted into a time format in a string.

Returns:    A character string.
            The string returned contains the time corresponding to the
            value in "seconds after midnight" in hh:mm:ss format.

Usage:      This function can be used in two areas: the conversion of
            time spans available in seconds, and the conversion of a
            point in time to hh:mm:ss format.  It greatly simplifies
            calculations when time is stored in seconds.  SETTOTIME()
            can then be used to convert back to the conventional
            representation.

Notes:      The seconds elapsed since midnight mat lie within the range
            of 0 to 86400.  The function will return a null string if
            <expN> is too large or negative.

Library:    CT1.LIB


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

Examples:   * Calculate the time span between two
            * times stored as seconds.  Represent
            * the result in hh:mm:ss format.

            start = 0
            end = 2656                          && Time in seconds

            ? SECTOTIME(end - start)            && Time span in hh:mm:ss



See Also: TIMETOSEC()

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