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

PI System Management Tools

Year (Tag-based PE function)

  • Last UpdatedOct 04, 2024
  • 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