HBCT Date and Time Functions
     Sets the system clock
     SetTime( <cTime>, [<lMode>] ) --> lSet
     <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. Note that in
     Windows platform this adjust is automatic, therefore this parameter is
     without efect.
     The FUNCTION RETURNs .T. when the time is set successfully.
     When you use this FUNCTION to convert the time into the system time from
     within your application, all files acquire this time with
     each write procedure.
     // Set the system time in each case; but the hardware clock only
     // on an AT:
     cNewTime := "10:20:00"
     IF IsAt()
        SetTime( cNewTime, .T. )
        SetTime( cNewTime )
     Or, more compactly:
     SetTime( cNewTime, IsAt() )
     This function is Clipper Tools compatible.
     Windows, Linux
     Library is hbct.
     SetDate(), TimeValid()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.