7.1.2 SetDeviceTime

The Method SetDeviceTime allows to set the device time. The signature of this Method is specified below.

Signature

	SetDeviceTime (
		[in]	0:DateTime		DateTime,
		[in]	0:TimeZoneDataType	TimeZoneOffset
	);
	
Table 19 – SetDeviceTime Method Arguments
Argument Description
DateTimeDate and time in UTC time
TimeZoneOffsetTime difference from UTC in minutes
Table 20 – SetDeviceTime Method AddressSpace Definition
Attribute Value
BrowseNameSetDeviceTime
References Node Class BrowseName DataType TypeDefinition Other
0:HasPropertyVariableInputArgumentsArgument[]0:PropertyTypeM

NOTE: A call with DateTime = "2024-02-03 12:00" (UTC time) and TimeZoneOffset = {120; true}, sets the (local) machine time to "03-02-2024 14:00" and the time zone to "UTC+2".