TIMESHIFT
- Last UpdatedMar 03, 2025
- 1 minute read
The TIMESHIFT() function shifts the time stamps in the input stream by adding or subtracting a specified time interval.
Syntax
|
Format |
Stream = TIMESHIFT( Stream, Interval ) |
|
Arguments |
Stream - A stream of values TimeInterval - The time period to add (or subtract if negative) |
|
Description |
The specified interval of time is added to (or subtracted from) the time stamps in the input stream. |
Example 1
The following expression shifts the time stamp of the city temperature data to compare it with the previous day.
TIMESHIFT([PLPWeather.CapeTownTemperature] , 1 day)
The red dotted line shows the temperature from the day before.
