SetSystemDate

SetSystemDate (int month, int day, int year);

Purpose

Sets the system date.

Linux This function is not supported.

Note    You must have system administrator status to use this function.

Parameters

Input
Name Type Description
month integer The month component of the date.

Values
1—January
2—February
3—March
4—April
5—May
6—June
7—July
8—August
9—September
10—October
11—November
12—December
day integer The day component of the date.

Values: 1 to 31
year integer The year component of the date.

Return Value

Name Type Description
result integer The result of the call.

Code Description
0 Success.
-1 Operating system reported failure.