Noon
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Return a timestamp for noon on the day of a given time expression.
Syntax
Noon(t1)
Arguments
-
t1
A time expression enclosed in single quotes
Returns
A timestamp corresponding to noon of the day of the input time
Exceptions
None
Notes
This function is useful for establishing a unique clock time independent of the length of particular days.
Example
-
Noon('*')
[Return the timestamp for noon of current day]
-
Noon(FindEq('att1', '-3d', '*', 50))
[Return the timestamp for noon of the day when 'att1' was first equal to 50 in the past 3 days]