Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Analytics and Notifications for PI System Explorer (PI Server 2024 R2)

Year

  • Last UpdatedJan 11, 2023
  • 1 minute read

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]

In This Topic
TitleResults for “How to create a CRG?”Also Available in