API Reference@grafana/dataaddDurationToDate

addDurationToDate() function

addDurationToDate() function

Signature

export declare function addDurationToDate(date: Date | number, duration: Duration): Date;

Import

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

Parameters

Parameter Type Description
date Date | number
duration Duration

Returns:

Date