How is $timeFilter expanded?

I am having a query in grafana, and want to test it first directly on the influx db, to make sure I get the expected data from it.

how is $timeFilter expanded?

Example here: http://docs.grafana.org/reference/templating/#the-timefilter-or-timefilter-variable

Thanks!

select * from “ceph_value” where “type”=‘ceph_latency’ and time > now() - 5d order by time desc limit 100;