Endtime Property

General info

Label

End Time

Description

Defines the end time for the export, if empty the most recent timestamp of the configured objects will be used.

Data type

DateTime

Type

Regular

Code

4119

Symbolic name

MODEL_PROP_ENDTIME

Lua access code

syslib.model.properties.Endtime

Available since

1.40

Parent properties

AggregationOptions

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_NULLABLE This Property can have no value.

Examples

Read from or write to the Endtime property.

  • Lua

  • C#

-- Read from the Endtime
syslib.getvalue("<OBJECT FULL PATH>.AggregationOptions.Endtime")

-- Write to the Endtime
syslib.setvalue("<OBJECT FULL PATH>.AggregationOptions.Endtime", 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 Endtime
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.AggregationOptions.Endtime"));
// Write to the Endtime
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, "<OBJECT FULL PATH>.AggregationOptions.Endtime"));