I wanted to truncate time and for that i wanted to use date.truncate() function of flux. I wanted to use the example given in the page:
import "date" option now = () => 2021-04-21T20:30:00Z date.truncate(t: -1h, unit: 1h) // Should Return 2021-04-21T19:00:00Z
But it is giving error like : “type error @3:17-3:19: expected time but found duration”.
Any solution for this error or any alternative solution for what i want?