toTime() function

The toTime() function converts a value to a time.

Function type: Type conversion
Output data type: Time

toTime()

Examples

from(bucket: "telegraf")
  |> filter(fn:(r) =>
    r._measurement == "mem" AND
    r._field == "used"
  )
  |> toTime()

Function definition

toTime = (tables=<-) =>
  tables
    |> map(fn:(r) => time(v:r._value))

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support