Understand relative time
- Last UpdatedDec 18, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Relative time expressions are some number of a number of days (), hours (), minutes (), or seconds (), specified with either a leading plus sign (+) or a leading minus sign (-). The Relative time field in the PI Point Data Reference window shifts the time context by the specified offset. For example, if a client requests an attribute value at the current time where the relative time expression is , PI AF returns data from eight hours before the current time.
Fractional times are supported. For example, use to indicate one and one-half days.
Relative time expressions can contain only one operator, either + or -. For example, the following is not supported:
-1d+1h
The following are all valid relative times:
+1d
-24h
-3.25m
+24s