Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
dateMath.isMathString() function
dateMath.isMathString() function
Determine if a string contains a relative date time.
Signature
export declare function isMathString(text: string | DateTime | Date): boolean;
Import
import { dateMath } from '@grafana/data';
const { isMathString } = dateMath;
Parameters
Parameter | Type | Description |
---|---|---|
text | string | DateTime | Date |
Returns:
boolean