Menu

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.

Enterprise Open source

DateTimeDuration interface

Signature

typescript
export interface DateTimeDuration 

Import

typescript
import { DateTimeDuration } from '@grafana/data';

Properties

PropertyTypeDescription
asHours() => number
asSeconds() => number
hours() => number
minutes() => number
seconds() => number

asHours property

Signature

typescript
asHours: () => number;

asSeconds property

Signature

typescript
asSeconds: () => number;

hours property

Signature

typescript
hours: () => number;

minutes property

Signature

typescript
minutes: () => number;

seconds property

Signature

typescript
seconds: () => number;