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

Syntax:     SETDATE(<expD>,[<expL>])

Arguments:  <expD> is the date that should be set as system date.
            <expL> denote whether the date  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 date
            successfully.

Usage:      All files are given the system date when written to.  This
            function can be used to make the date from the Clipper
            application the system date.

Notes:      Please note that the optional <expL> argument may only be
            used on IBM AT's.  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:   * Change the system date and the hardware clock
            * on an AT.

            newdate = CTOD("07/30/88")

            IF ISAT()
               SETDATE(newdate,.T.)
            ELSE
               SETDATE(newdate)
            ENDIF



See Also: SETTIME() ISAT()

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