OPC Foundation
  • Documents
  • NodeSets
  • Search
10.5 SetMachineTime

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

Signature

SetMachineTime (

[in]0:DateTimeDateTime

[in]0:TimeZoneDataTypeTimeZoneOffset);

Table 28 – SetMachineTime Method Arguments

Argument

Description

DateTime

Date and time in UTC time

TimeZoneOffset

Time difference from UTC in minutes incl. daylight saving time

Table 29 – SetMachineTime Method AddressSpace Definition

Attribute

Value

BrowseName

SetMachineTime

References

Node Class

BrowseName

DataType

TypeDefinition

Modelling Rule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

M

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.

Please report errors or issues with the site to webmaster.

Copyright © 2025 - OPC Foundation