Year
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Extract the year from a time expression.
Syntax
Year(t1)
Arguments
-
t1
A time expression, enclosed in single quotes
Returns
The year of time, in the range 1970-present
Exceptions
None
Example
-
Year('*')
[Return what year it is now]
-
Year(FindGT('att1', '1/1/1970', '*', 50))
[Return what year it was when the value of 'att1' was first greater than 50 since 1/1/1970]