dateMath.isMathString() function

dateMath.isMathString() function

Determine if a string contains a relative date time.

Signature

  1. export declare function isMathString(text: string | DateTime | Date): boolean;

Import

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

Parameters

ParameterTypeDescription
textstring | DateTime | Date

Returns:

boolean