How to use the @influxdata/giraffe.timeFormatter function in @influxdata/giraffe

To help you get started, we’ve selected a few @influxdata/giraffe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github influxdata / influxdb / ui / src / shared / utils / vis.ts View on Github external
prefix,
      suffix,
      significantDigits: VIS_SIG_DIGITS,
      trimZeros,
    })
  }

  if (columnType === 'time') {
    const formatOptions = {
      timeZone: timeZone === 'Local' ? undefined : timeZone,
      format: resolveTimeFormat(timeFormat),
    }
    if (timeFormat?.includes('HH')) {
      formatOptions['hour12'] = false
    }
    return timeFormatter(formatOptions)
  }

  return null
}

@influxdata/giraffe

[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://www.influxdata.com/slack)

MIT
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis