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

Duration

Extends:

tiny-types~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

plus(another: Duration): *

public

toString(): *

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 plus(another: Duration): * source

Params:

NameTypeAttributeDescription
another Duration

Returns:

*

public toString(): * source

Returns:

*