Second
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Extract the second from a time expression.
Syntax
Second(t1)
Arguments
-
t1
A time expression enclosed in single quotes.
Returns
The second of time, in the range 0-59
Exceptions
None
Example
-
Second('*')
[Return the second from current time]
-
Second(FindEq('att1', '-1m', '*', 2)
[Return the second from a timestamp when the value of 'att1' was first equal to 2 in the past minute]