dateMath.roundToFiscal() function

dateMath.roundToFiscal() function

Signature

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

Import

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

Parameters

ParameterTypeDescription
fyStartMonthnumber
dateTimeany
unitstring
roundUpboolean | undefined

Returns:

any