Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

GetCPTimeStamp()

  • Last UpdatedJul 22, 2024
  • 1 minute read

Returns the time stamp of a custom property. This function is available within any Industrial Graphics client script.

Syntax

DateTime GetCPTimeStamp(String name)

Where String name is the name of the custom property whose time stamp is to be retrieved.

This script function takes the name of a custom property on the graphic. This argument is of type string and it can be a reference or a constant.

For use with custom properties only. It does not apply to HMI tags.

Return value

The GetCPTimeStamp() script function returns the time stamp of the custom property’s current value of type DateTime. If the custom property value is a constant, then the return value is the time the value was created.

Example

cp2 = GetCPTimeStamp("cp1");

Where cp1 and cp2 are custom properties and the data type of cp2 is DateTime.

In This Topic
TitleResults for “How to create a CRG?”Also Available in