Guillaume,
I can confirm that it seems like a bug or unsupported feature. I'll reach out to R&D and get a confirmation.
In the meanwhile, another way to approach the same problem is that you create a base view that also calculates 'ElapsedSeconds' for you. Then in your rest view, you can use that field as a regular field, instead of doing time manipulation.
C:\Prognosis\Server\Configuration>..\irpqlcli "Create View MyProblems as Select *, DateDiff(Second, OpenTime, Now()) as ElapsedSeconds FROM PROBSUMC"
C:\Prognosis\Server\Configuration>..\irpqlcli "Start MyProblems"
C:\Prognosis\Server\Configuration>..\irpqlcli "Select TOP 10 OpenTime, ProblemNumber FROM MyProblems where ElapsedSeconds > @lookbackseconds" -r -b lookbackseconds=60
OpenTime | ProblemNumber |
___________________________________________________
2018-01-24T06:40:00.007867-07:00 | 200233 |
2018-01-24T08:20:00.004423-07:00 | 200234 |
2018-01-17T01:20:00.005010-07:00 | 200129 |
2018-01-17T03:00:00.009549-07:00 | 200130 |
2018-01-17T04:40:00.014087-07:00 | 200131 |
2018-01-17T06:20:00.003026-07:00 | 200132 |
2018-01-17T08:00:00.007564-07:00 | 200133 |
2018-01-17T09:40:00.014103-07:00 | 200134 |
2018-01-17T11:20:00.003041-07:00 | 200135 |
2018-01-17T13:00:00.023180-07:00 | 200136 |
C:\Prognosis\Server\Configuration>
Let me know if this works for you.
If my reply answered your question please click on the 'Accept as Solution' button to help others find the answer.
Thanks,
Shoaib