PreviousTime
- Last UpdatedNov 22, 2022
- 1 minute read
- PI System
- PI Manual Logger 2017 R2
- Visualization
Syntax
PreviousTime(TagName)
Arguments
|
Argument |
Data Type |
Description |
|---|---|---|
|
TagName |
String |
The name of any PI tag in the current tour. The tag must be surrounded by double or single quotes. |
Returns
Returns the timestamp of the last collected value from previous tours for the TagName argument (for the timestamp of the tag in the current tour, use the CurrentTime function). The tag must be part of the current tour. If the last timestamp cannot be determined, is returned.
Examples
PreviousTime("TI001.ML")
This example returns the timestamp for the latest previous value of the tag named . If the timestamp for the previous value cannot be found for the tag, is returned.