API Reference@grafana/dataSystemDateFormatsState

SystemDateFormatsState class

Signature

export declare class SystemDateFormatsState 

Import

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

Properties

PropertyModifiersTypeDescription
fullDatestring
fullDateMSstring
interval{
millisecond: string;
second: string;
minute: string;
hour: string;
day: string;
month: string;
year: string;
}

Methods

MethodModifiersDescription
getTimeFieldUnit(useMsResolution)
update(settings)
useBrowserLocale()

fullDate property

Signature

fullDate: string;

fullDateMS property

Signature

fullDateMS: string;

interval property

Signature

interval: {
        millisecond: string;
        second: string;
        minute: string;
        hour: string;
        day: string;
        month: string;
        year: string;
    };

getTimeFieldUnit method

Signature

getTimeFieldUnit(useMsResolution?: boolean): string;

Parameters

ParameterTypeDescription
useMsResolutionboolean

Returns:

string

update method

Signature

update(settings: SystemDateFormatSettings): void;

Parameters

ParameterTypeDescription
settingsSystemDateFormatSettings

Returns:

void

useBrowserLocale method

Signature

useBrowserLocale(): void;

Returns:

void