Hello,
I’m very beginner in flux so my question is probably simple !
I try to get a request on influxdb 2.0 db at specific time.
For this i try this :`
Hi. Generally, the flux version in OSS lags the version that’s released/in-cloud. The cloud version gets updated pretty regularly and shortly after we tag a release. The OSS version gets updated around the same time, but OSS doesn’t get released every week.
From the documentation, you can see here that the function was added in v0.162.0 (date.sub() function | Flux 0.x Documentation). You can use this query to determine your flux version:
If that version is equal to or newer than the above version, then it should be there. I’m guessing that you might be using an older version. That function is very new (last couple of weeks) and was previously located in the experimental package as experimental.subDuration(). We felt that it was no longer experimental and had been there for too long, so we promoted it to the standard library.