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

API Reference@grafana/dataisRelativeTimeRange

rangeUtil.isRelativeTimeRange() function

rangeUtil.isRelativeTimeRange() function

Signature

export declare function isRelativeTimeRange(raw: RawTimeRange): boolean;

Import

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

Parameters

Parameter Type Description
raw RawTimeRange

Returns:

boolean