toDuration variable

toDuration variable

Signature

  1. toDuration: (input?: DurationInput | undefined, unit?: DurationUnit | undefined) => DateTimeDuration

Import

  1. import { toDuration } from '@grafana/data';