How to format time in influxdb select query

前端 未结 4 2076
旧时难觅i
旧时难觅i 2020-12-24 00:42

I am new to InfluxDB. I am querying data in admin ui. I see time as timestamp. Is it possible to see it formatted as date and time?

4条回答
  •  心在旅途
    2020-12-24 01:15

    Although thierry answered the question already, here is the link to the documentation as well:

    precision 'rfc3339|h|m|s|ms|u|ns'

    Specifies the format/precision of the timestamp: rfc3339 (YYYY-MM-DDTHH:MM:SS.nnnnnnnnnZ), h (hours), m (minutes), s (seconds), ms (milliseconds), u (microseconds), ns (nanoseconds). Precision defaults to nanoseconds.

    https://docs.influxdata.com/influxdb/v1.5/tools/shell/#influx-arguments

提交回复
热议问题