API Reference@grafana/dataintervalToSeconds

rangeUtil.intervalToSeconds() function

rangeUtil.intervalToSeconds() function

Signature

export declare function intervalToSeconds(str: string): number;

Import

import { rangeUtil } from '@grafana/data';
const { intervalToSeconds } = rangeUtil;

Parameters

ParameterTypeDescription
strstring

Returns:

number