API Reference@grafana/dataroundToFiscal

dateMath.roundToFiscal() function

dateMath.roundToFiscal() function

Signature

export declare function roundToFiscal(fyStartMonth: number, dateTime: any, unit: string, roundUp: boolean | undefined): any;

Import

import { dateMath } from '@grafana/data';
const { roundToFiscal } = dateMath;

Parameters

Parameter Type Description
fyStartMonth number
dateTime any
unit string
roundUp boolean | undefined

Returns:

any