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

API Reference@grafana/datagetDefaultTimeRange

getDefaultTimeRange() function

getDefaultTimeRange() function

Signature

export declare function getDefaultTimeRange(): TimeRange;

Import

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

Returns:

TimeRange