Cicode Programming Reference > Cicode Function Categories > Tag Functions Introduction > SubscriptionGetTimestamp

SubscriptionGetTimestamp

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:

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);

See Also

Tag Functions