added int support to range, resolves #1296

pull/1387/head
Scott Anderson 2020-08-12 13:16:54 -06:00
parent 390e2eeda3
commit d23fa17f1c
6 changed files with 13 additions and 8 deletions

View File

@ -38,6 +38,7 @@ Results **include** points that match the specified start time.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`..
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
_**Data type:** Duration | Time | Integer_
@ -47,6 +48,7 @@ Results **exclude** points that match the specified stop time.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
Defaults to `now()`.
_**Data type:** Duration | Time | Integer_

View File

@ -41,6 +41,7 @@ Results **include** points that match the specified start time.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
_**Data type:** Duration | Time | Integer_
@ -50,6 +51,7 @@ Results **exclude** points that match the specified stop time.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
Defaults to `now()`.
_**Data type:** Duration | Time | Integer_

View File

@ -35,6 +35,7 @@ The earliest time to include in results.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
_**Data type:** Duration | Time | Integer_
@ -43,6 +44,7 @@ The latest time to include in results.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
Defaults to `now()`.
_**Data type:** Duration | Time | Integer_

View File

@ -34,6 +34,7 @@ The earliest time to include in results.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
_**Data type:** Duration | Time | Integer_
@ -42,6 +43,7 @@ The latest time to include in results.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
Defaults to `now()`.
_**Data type:** Duration | Time | Integer_

View File

@ -30,12 +30,6 @@ InfluxDB until the next InfluxDB v2.0 release._
## v0.80.0 [2020-08-12]
{{% warn %}}
#### Breaking change
`range()` and `date` package functions no longer support integer values
(nanosecond Unix timestamps).
{{% /warn %}}
### Features
- Add `nulls` parameter to `gen.tables()`.

View File

@ -58,18 +58,21 @@ Results **include** points that match the specified start time.
Use a relative duration or absolute time.
For example, `-1h` or `2019-08-28T22:00:00Z`.
Durations are relative to `now()`.
Integers are nanosecond Unix timestamps.
_**Data type:** Duration | Time_
_**Data type:** Duration | Time | Integer_
### stop
Latest time to include in results.
Results **exclude** points that match the specified stop time.
Use a relative duration or absolute time.
For example, `-1h` or `2019-08-28T22:00:00Z`.
Integers are nanosecond Unix timestamps.
Durations are relative to `now()`.
Defaults to `now()`.
_**Data type:** Duration | Time_
_**Data type:** Duration | Time | Integer_
### m
<span class="req">Required</span> Name of the measurement to query.