durationToMilliseconds() function

durationToMilliseconds() function

durationToMilliseconds convert a duration object to milliseconds

Signature

  1. export declare function durationToMilliseconds(duration: Duration): number;

Import

  1. import { durationToMilliseconds } from '@grafana/data';

Parameters

ParameterTypeDescription
durationDurationdatefns Duration object

Returns:

number