- What is the time range for InfluxDB?
- How do I change time precision in InfluxDB?
- How to write time in InfluxDB?
What is the time range for InfluxDB?
Timestamps. For most SELECT statements, the default time range is between 1677-09-21 00:12:43.145224194 and 2262-04-11T23:47:16.854775806Z UTC. For SELECT statements with a GROUP BY time() clause, the default time range is between 1677-09-21 00:12:43.145224194 UTC and now() .
How do I change time precision in InfluxDB?
To set the precision in CLI, you write precision <RFC3339|h|m|s|ms|us|ns> in the command line depending on what precision you want. The default value of the precision for the CLI is nanoseconds. To set the precision in HTTP API, you pass epoch=<h|m|s|ms|us|ns> as a query parameter.
How to write time in InfluxDB?
Timestamps are UNIX timestamps. The minimum valid timestamp is -9223372036854775806 or 1677-09-21T00:12:43.145224194Z . The maximum valid timestamp is 9223372036854775806 or 2262-04-11T23:47:16.854775806Z . As mentioned above, by default, InfluxDB assumes that timestamps have nanosecond precision.