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

API Reference@grafana/datasecondsToHms

rangeUtil.secondsToHms() function

rangeUtil.secondsToHms() function

Signature

export declare function secondsToHms(seconds: number): string;

Import

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

Parameters

Parameter Type Description
seconds number

Returns:

string