GetSystemTime

Category: System
Since engine version: 4.9.1.0 GWE

Description

Returns current system time.

Syntax

int GetSystemTime (int iWhat);

Parameter

iWhat:
What to return (see remarks).

Remarks

The function will return a value depending on what has been requested:
iWhat Return value
0 Year
1 Month (1 = January, 2 = February, etc.)
2 Day of the wekk (0 = Sunday, 1 = Monday, etc.)
3 Day
4 Hour
5 Minute
6 Second
7 Millisecond
As operating system times will vary on different computers, this function will always return 0 in a network game or playback to avoid synchronization errors.

Example

func SageUhrzeit()
{
	Message("Die momentane Uhrzeit ist: %02d:%02d:%02d", this(), GetSystemTime(4), GetSystemTime(5), GetSystemTime(6));
}
See also: GetTime
Peter, August 2002