This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datastringToMs

stringToMs() function

stringToMs() function

Signature

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

Import

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

Parameters

Parameter Type Description
str string

Returns:

number