AbsoluteDateTimeEnd Property
General info
Label |
Absolute Datetime End |
Description |
Absolute Datetime end container. |
Data type |
DateTime |
Type |
Regular |
Code |
2138 |
Symbolic name |
MODEL_PROP_ABSOLUTEDATETIMEEND |
Lua access code |
syslib.model.properties.AbsoluteDateTimeEnd |
Available since |
1.20 |
- Parent properties
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 AbsoluteDateTimeEnd property.
-- Read from the AbsoluteDateTimeEnd
syslib.getvalue("<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeEnd")
-- Write to the AbsoluteDateTimeEnd
syslib.setvalue("<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeEnd", 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 AbsoluteDateTimeEnd
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeEnd"));
// Write to the AbsoluteDateTimeEnd
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, "<OBJECT FULL PATH>.ReportItemProperties.HistoryQueryOptions.AbsoluteDateTimeEnd"));