Selecting last 24hours recrods

Dear All,

I am trying to write a code to eliminate some noise in the data Which needs reading last 24hours data from InfluxDb. Can any one suggest me how to read last 24hours records from current time.

Thanks & Regards

I’m not quite sure what you are trying to achieve. Selecting data from the last 24 hours is done by using “time > now()-24h” in the where clause, but this probably doesn’t answer your question.