API Reference@grafana/datatoDuration

toDuration variable

toDuration variable

Signature

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

Import

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