API Reference@grafana/datatoDuration

toDuration variable

toDuration variable

Signature

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

Import

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