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:TimeZoneDataTypeTimeZoneOffset
);
Table 19 – SetDeviceTime Method Arguments
Argument |
Description |
DateTime |
Date and time in UTC time |
TimeZoneOffset |
Time difference from UTC in minutes |
Table 20 – SetDeviceTime Method AddressSpace Definition
Attribute |
Value |
||||
BrowseName |
SetDeviceTime |
||||
References |
Node Class |
BrowseName |
DataType |
TypeDefinition |
Other |
0:HasProperty |
Variable |
InputArguments |
Argument[] |
0:PropertyType |
M |
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".