API Reference@grafana/datagetDefaultRelativeTimeRange

getDefaultRelativeTimeRange() function

getDefaultRelativeTimeRange() function

Returns the default realtive time range.

Signature

export declare function getDefaultRelativeTimeRange(): RelativeTimeRange;

Import

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

Returns:

RelativeTimeRange