10.5 SetMachineTime

The SetMachineTime Method allows setting the server time together with TimeZoneOffset.

Signature

	SetMachineTime (
		[in]	0:DateTime	DateTime
		[in]	0:TimeZoneDataType	TimeZoneOffset);
Table 28 – SetMachineTime Method Arguments
Argument Description
DateTimeDate and time in UTC time
TimeZoneOffsetTime difference from UTC in minutes incl. daylight saving time
Table 29 – SetMachineTime Method AddressSpace Definition
Attribute Value
BrowseNameSetMachineTime
References Node Class BrowseName DataType TypeDefinition Modelling Rule
0:HasPropertyVariableInputArgumentsArgument[]0:PropertyTypeM

Example: A call with DateTime = "2021-04-30 12:00" (UTC time) and TimeZoneOffset = {120; true}, sets the (local) machine time to "30-04-2021 14:00" and the time zone to "UTC+2" with active daylight saving time.