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.