import {Duration} from '@serenity-js/core/lib/model'
public class | source

Duration

Extends:

TinyType → Duration

Tests:

Static Member Summary

Static Public Members
public static

ofDays: *

public static

ofHours: *

public static
public static
public static
public static

ofYears: *

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

inMilliseconds(): number

public

isGreaterThan(another: Duration): boolean

public

isGreaterThanOrEqualTo(another: Duration): boolean

public

isLessThan(another: Duration): boolean

public

isLessThanOrEqualTo(another: Duration): boolean

public

plus(another: Duration): Duration

public

toString(): string

Static Public Members

public static ofDays: * source

public static ofHours: * source

public static ofMilliseconds: * source

public static ofMinutes: * source

public static ofSeconds: * source

public static ofYears: * source

Public Constructors

public constructor() source

Public Methods

public inMilliseconds(): number source

Returns:

number

public isGreaterThan(another: Duration): boolean source

Params:

NameTypeAttributeDescription
another Duration

Returns:

boolean

public isGreaterThanOrEqualTo(another: Duration): boolean source

Params:

NameTypeAttributeDescription
another Duration

Returns:

boolean

public isLessThan(another: Duration): boolean source

Params:

NameTypeAttributeDescription
another Duration

Returns:

boolean

public isLessThanOrEqualTo(another: Duration): boolean source

Params:

NameTypeAttributeDescription
another Duration

Returns:

boolean

public plus(another: Duration): Duration source

Params:

NameTypeAttributeDescription
another Duration

Returns:

Duration

public toString(): string source

Returns:

string