Interface Duration

Index

Methods

Methods

public asDays(): number

Returns

number

public asHours(): number

Returns

number

public asMilliseconds(): number

Returns

number

public asMinutes(): number

Returns

number

public asMonths(): number

Returns

number

public asSeconds(): number

Returns

number

public asYears(): number

Returns

number

public days(): number

Returns

number

public hours(): number

Returns

number

public humanize(): string

Returns

string

public milliseconds(): number

Returns

number

public minutes(): number

Returns

number

public months(): number

Returns

number

public seconds(): number

Returns

number

public subtract(n: number, p: string): Duration

Parameters

  • n: number
  • p: string

Returns

Duration

public subtract(n: number): Duration

Parameters

  • n: number

Returns

Duration

public subtract(d: Duration): Duration

Parameters

Returns

Duration

public years(): number

Returns

number