From e99204088083b369fc5e680b3653b14fef23e7da Mon Sep 17 00:00:00 2001 From: Walter Dal Mut Date: Sat, 13 Sep 2014 09:22:14 +0200 Subject: [PATCH] Updated docs (time precision) --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 5fbc30cb3..17aace4d6 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,18 @@ $client = new Client(); $client->setAdapter($adapter); ``` +### Time Precision write/read queries + +You can set the `time_precision` for query query + +```php +$client->mark("app.search", $points, "s"); //points contains "time" that is in seconds +``` + +```php +$client->query("select * from app.search", "s"); // retrieve points using seconds for time column +``` + ### Query InfluxDB You can query the time series database using the query method.