Merge pull request #161 from influxdata/update/timestamp-format

Date and timestamp formats in Flux
pull/172/head
Scott Anderson 2019-04-17 08:04:22 -06:00 committed by GitHub
commit 62a3003a40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,11 @@ Absolute stop times are defined using timestamps.
_**Data type:** Duration or Timestamp_
{{% note %}}
Flux only honors [RFC3339 timestamps](/v2.0/reference/flux/language/types#timestamp-format)
and ignores dates and times provided in other formats.
{{% /note %}}
## Examples
###### Time range relative to now

View File

@ -44,6 +44,13 @@ float the set of all IEEE-754 64-bit floating-point numbers
A _time type_ represents a single point in time with nanosecond precision.
The time type name is `time`.
### Timestamp format
Flux supports [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) timestamps:
- `YYYY-MM-DD`
- `YYYY-MM-DDT00:00:00Z`
- `YYYY-MM-DDT00:00:00.000Z`
## Duration types
A _duration type_ represents a length of time with nanosecond precision.