API Reference@grafana/dataparseDuration

parseDuration() function

parseDuration() function

Signature

export declare function parseDuration(duration: string): Duration;

Import

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

Parameters

Parameter Type Description
duration string

Returns:

Duration