Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>settime()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SETTIME()
 Sets the system clock
------------------------------------------------------------------------------
 Syntax

     SETTIME(<cTime>, [<lMode>]) --> lSet

 Arguments

     <cTime>  Designates a character string that contains the time that
     is to become the system time.

     <lMode>  Designates whether the time should also be set in the
     CMOS-RAM of an AT.  The default is do not write to CMOS-RAM.

 Returns

     The function returns .T. when the time is set successfully.

 Description

     When you use this function to convert the time into the system time from
     within your CA-Clipper application, all files acquire this time with
     each write procedure.

 Note

     .  Please note that you can only implement the optional <lMode>
        parameter in AT-compatible machines.  The correct operation of
        SETTIME() cannot be guaranteed on machines that use a hardware clock.
        The default value for <lMode> is .F..

 Examples

     .  Set the system time in each case; but the hardware clock only
        on an AT:

        cNewTime  :=  "10:20:00"
        IF ISAT()
           SETTIME(cNewTime, .T.)
        ELSE
           SETTIME(cNewTime)
        ENDIF

     .  Or, more compactly:

        SETTIME(cNewTime, ISAT())


See Also: SETDATE()

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