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

Syntax:     SETTIME(<expC>,[<expL>])

Arguments:  <expC> is the string which contains the time that should
            become the new system time.
            <expL> denote whether the time should also be set in the
            CMOS-RAM of an IBM AT.

Returns:    A logical value.
            The function will return (.T.) if it was possible to set the time
            successfully.

Usage:      All files are given the system time when written to.  This
            function can be used to set the system time from within a
            Clipper application.

Notes:      Please note that the optional <expL> argument may only be
            used on IBM ATs.  It is not possible to guarantee the correct
            operation of the function on PCs with a hardware clock.  The
            default setting for <expL> is (.F.).

Library:    CT1.LIB


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

Examples:   * Set the system time and the hardware
            * clock on an AT.

            newtime = "10:20:00"

            IF ISAT()
               SETTIME(newtime,.T.)
            ELSE
               SETTIME(newtime)
            ENDIF



See Also: SETDATE()

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