SubscriptionGetTimestamp
- Last UpdatedJul 18, 2023
- 1 minute read
Reads the specified timestamp of a subscribed tag.
Syntax
SubscriptionGetTimestamp(iHandle, sAttribute )
iHandle
Integer handle of the subscription to read from.
sAttribute
Attribute of the tag to read. Supported Attributes are:
Timestamp - The timestamp when the tag last changed. It is default value used when this argument is not specified.
QualityTimestamp - The timestamp when quality of the tag last changed.
ValueTimestamp - The timestamp when value of the tag last changed.
Return Value
The requested timestamp for a subscribed tag. On error, 0 (INVALID TIMESTAMP).
Related Functions
SubscriptionGetInfo, SubscriptionGetQuality, SubscriptionGetValue, SubscriptionGetTag
Example
TIMESTAMP theTime = SubscriptionGetTimestamp(hSub, "ValueTimestamp");
TIMESTAMP theTime = SubscriptionGetTimestamp(hSub);