Is what you call CalcTime the same as the trigger time? If so, you can use the PI relative time string "*+4h". Note that the asterisk does not always mean Now with relative time strings. It depends on the context. For the context of analyses, the asterisk is the trigger time, which is helpful for when you are backfilling calculations.
'* + 4h' works (I tried this before my question).
But, I thought it would be possible to sum time from PI point and some fixed values.
I'm thinking to solve the problem in another way... convert value to integer...
But, how to turn back time from Integer to DateTime.
3 of 3 people found this helpful
Assuming CalcTime is a DateTime typed attribute, you need to start with +/- to indicate that the value is a timespan: 'CalcTime' + '+4h'
that's it, works!
I did not understand mistake in syntax.