TatUTCOffset Property

General info

Label

UTC Offset

Description

The offset as a string expression between the local time and UTC as reported by the host OS for the service component.

Data type

String

Type

Regular

Code

12708

Symbolic name

MODEL_PROP_TATUTCOFFSET

Lua access code

syslib.model.properties.TatUTCOffset

Available since

1.78

Parent properties

TatPreview

Attributes

Name Tooltip
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_VOLATILE The property exists during runtime of the service only and is not saved to the image.

Examples

Read from or write to the TatUTCOffset property.

  • Lua

  • C#

-- Read from the TatUTCOffset
syslib.getvalue("<OBJECT FULL PATH>.TatPreview.TatUTCOffset")

-- Write to the TatUTCOffset
syslib.setvalue("<OBJECT FULL PATH>.TatPreview.TatUTCOffset", "new value")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the TatUTCOffset
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.TatPreview.TatUTCOffset"));
// Write to the TatUTCOffset
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.TatPreview.TatUTCOffset"));