CNVGetDataUTCTimestamp
- Updated2023-02-21
- 1 minute(s) read
int CNVGetDataUTCTimestamp (CNVData data, unsigned __int64 *timestamp);
Purpose
Gets the timestamp of the data. The timestamp is an unsigned 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 in UTC. You can use CNVGetTimestampInfo to get the year, month, day, hour, minute, and second represented by the timestamp.
Parameters
Input | ||
Name | Type | Description |
data | CNVData | The handle that identifies the network variable data. |
Output | ||
Name | Type | Description |
timestamp | unsigned __int64 | The timestamp of the data in Coordinated Universal Time (UTC). |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. Zero represents successful execution, one indicates that the data does not have timestamp information, and a negative number indicates that an error occurred. You can call CNVGetErrorDescription to obtain a string that describes the error. |
Additional Information
Library: Network Variable Library
Include file: cvinetv.h
LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later
Example
Refer to networkvariable\Quality\NVQuality.cws for an example of using the CNVGetDataUTCTimestamp function.