Month
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Extract the month from a given time expression.
Syntax
Month(t1)
Arguments
-
t1
A time expression, enclosed in single quotes
Returns
The month of time, in the range 1-12
Exceptions
None
Example
-
Month('*')
[Return the current month]
-
Month(FindEq('att1', '-10d', '*', 5')
[Return the month from a timestamp when the value of 'att1' was first equal to 5 in the past 10 days]