Hour
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Extract the hour from a time expression.
Syntax
Hour(t1)
Arguments
-
t1
A time expression, enclosed in single quotes
Returns
The hour of time, in the range 0-23
Exceptions
None
Example
-
Hour('*')
[Return the hour portion of current time]
-
Hour('Saturday')
[Returns 0]
-
Hour(FindEq('att1', '-1d', '*', 50))
[Return the hour of the time when the value of 'att1' was first equal to 50 in the past 24 hours]