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

Static Method Summary

Static Public Methods
public static

fromJSON(v: string): *

public static

fromMillisecondTimestamp(v: number): *

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

diff(another: Timestamp): Duration

public

less(duration: Duration): Timestamp

public

plus(duration: Duration): Timestamp

public

toJSON(): string

public
public

toString(): string

Static Public Methods

public static fromJSON(v: string): * source

Params:

NameTypeAttributeDescription
v string

Returns:

*

public static fromMillisecondTimestamp(v: number): * source

Params:

NameTypeAttributeDescription
v number

Returns:

*

Public Constructors

public constructor() source

Public Methods

public diff(another: Timestamp): Duration source

Params:

NameTypeAttributeDescription
another Timestamp

Returns:

Duration

public less(duration: Duration): Timestamp source

Params:

NameTypeAttributeDescription
duration Duration

Returns:

Timestamp

public plus(duration: Duration): Timestamp source

Params:

NameTypeAttributeDescription
duration Duration

Returns:

Timestamp

public toJSON(): string source

Returns:

string

public toMillisecondTimestamp(): number source

Returns:

number

public toString(): string source

Returns:

string