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)

Hour

  • Last UpdatedOct 04, 2024
  • 1 minute read

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]

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