AbsoluteDateTimeStart Property

General info

Label

Absolute Datetime Start

Description

Absolute Datetime start container.

Data type

DateTime

Type

Regular

Code

2137

Symbolic name

MODEL_PROP_ABSOLUTEDATETIMESTART

Lua access code

syslib.model.properties.AbsoluteDateTimeStart

Available since

1.20

Parent properties

HistoryQueryOptions

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.

Examples

Read from or write to the AbsoluteDateTimeStart property.

  • Lua

  • C#

-- Read from the AbsoluteDateTimeStart
syslib.getvalue("<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeStart")

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

// Read from the AbsoluteDateTimeStart
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeStart"));
// Write to the AbsoluteDateTimeStart
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, "<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeStart"));