Bod
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Return a timestamp for beginning of the day from a time expression.
Syntax
Bod(t1)
Arguments
-
t1
A time expression, enclosed in single quotes
Returns
Timestamp for the start of the day
Exceptions
None
Notes
This function is useful for establishing a time at a unique clock time independent of the length of particular days.
Example
-
Bod('*')
[Return a timestamp for beginning of the day today]
-
Bod('y')
[Return a timestamp for beginning of the day yesterday]
-
Bod(FindEq('att1', '-3d', '*', 50))
[Return a timestamp for beginning of the day when 'att1' value was first equal to 50 in the past 72 hours]