NAME
SetDate()
CATEGORY
CT Date and Time Functions
ONELINER
Sets the system date
SYNTAX
SetDate( <dDate>, [<lMode>] ) --> lSet
ARGUMENTS
<dDate> Designates which date to use to set the system date.
<lMode> Designates whether the date should also be set in the CMOS-
RAM of an AT. The default is do not write (.F.). Note that in Windows
plataform this adjust is automatic, therefore this parameter is without
efect.
RETURNS
SetDate() RETURNs .T. when the date is successfully set.
DESCRIPTION
When you use this FUNCTION to set the system date from within your
application, all files acquire this date with each write procedure.
EXAMPLES
// Set the system date in each case; but the hardware clock only
// on an AT:
dNewDate := hb_SToD( "19910730" )
IF IsAt()
SetDate( dNewDate, .T. )
ELSE
SetDate( dNewDate )
ENDIF
Or, more compactly:
SetDate( dNewDate, IsAt() )
STATUS
Ready
COMPLIANCE
This function is Clipper Tools compatible.
PLATFORMS
Windows, Linux
FILES
Library is hbct.
SEEALSO
SetTime()
Like this:
Like Loading...
Related