SetSystemTime

Description:

baSetSystemTime sets the current time/date.

Platforms:

Windows

Usage:

Result = baSetSystemTime( Format, NewTime )

Arguments:

String, string.
Format is the time/date format to set. Can be either "time" or "date".
NewTime is the time/date to set.

Returns:

Integer.
Returns 1 if successful, otherwise 0.

Examples:

Director:
ok = baSetSystemTime( "date", "19980523" ) - sets the date to 23 June 1998

Authorware:
ok := baSetSystemTime( "time", "102300" ) - sets the time to 23 past 10
 

Notes:

The format for the time or date must be as follows:

"time" is in 24 hour format with leading zeros - hours, minutes and seconds and must be 6 characters

"date" is in year, month, day with leading zeros and must be 8 characters long,

The "date" and "time" formats are the same as those returned by baSystemTime
 

See also:

baSystemTime