intervalToAbbreviatedDurationString() function
intervalToAbbreviatedDurationString() function
intervalToAbbreviatedDurationString converts interval to readable duration string
Signature
export declare function intervalToAbbreviatedDurationString(interval: Interval, includeSeconds?: boolean): string;
Import
import { intervalToAbbreviatedDurationString } from '@grafana/data';
Parameters
Parameter | Type | Description |
---|---|---|
interval | Interval | interval to convert |
includeSeconds | boolean | optional, default true. If false, will not include seconds unless interval is less than 1 minute |
Returns:
string