NetworkTimestamp

NetworkTimestamp

Represents a network timestamp.

Constructor

new NetworkTimestamp(timestamp)

Description:
  • Creates a timestamp.

Source:
Parameters:
Name Type Description
timestamp number | bigint

Raw network timestamp.

Classes

NetworkTimestamp

Members

isEpochal

Description:
  • Determines if this is the epochal timestamp.

Source:

Determines if this is the epochal timestamp.

timestamp :bigint

Description:
  • Underlying timestamp.

Source:

Underlying timestamp.

Type:
  • bigint

Methods

addHours(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of hours to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of hours to add.

Returns:

New timestamp that is the specified number of hours past this timestamp.

Type
NetworkTimestamp

addMilliseconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of milliseconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of milliseconds to add.

Returns:

New timestamp that is the specified number of milliseconds past this timestamp.

Type
NetworkTimestamp

addMinutes(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of minutes to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of minutes to add.

Returns:

New timestamp that is the specified number of minutes past this timestamp.

Type
NetworkTimestamp

(abstract) addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

toString() → {string}

Description:
  • Returns string representation of this object.

Source:
Returns:

String representation of this object

Type
string

NetworkTimestamp

Represents a NEM network timestamp with second resolution.

Constructor

new NetworkTimestamp()

Source:

Classes

NetworkTimestamp

Members

isEpochal

Description:
  • Determines if this is the epochal timestamp.

Source:

Determines if this is the epochal timestamp.

timestamp :bigint

Description:
  • Underlying timestamp.

Source:

Underlying timestamp.

Type:
  • bigint

Methods

addHours(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of hours to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of hours to add.

Returns:

New timestamp that is the specified number of hours past this timestamp.

Type
NetworkTimestamp

addMilliseconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of milliseconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of milliseconds to add.

Returns:

New timestamp that is the specified number of milliseconds past this timestamp.

Type
NetworkTimestamp

addMinutes(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of minutes to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of minutes to add.

Returns:

New timestamp that is the specified number of minutes past this timestamp.

Type
NetworkTimestamp

(abstract) addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

toString() → {string}

Description:
  • Returns string representation of this object.

Source:
Returns:

String representation of this object

Type
string

NetworkTimestamp

Represents a Symbol network timestamp with millisecond resolution.

Constructor

new NetworkTimestamp()

Source:

Classes

NetworkTimestamp

Members

isEpochal

Description:
  • Determines if this is the epochal timestamp.

Source:

Determines if this is the epochal timestamp.

timestamp :bigint

Description:
  • Underlying timestamp.

Source:

Underlying timestamp.

Type:
  • bigint

Methods

addHours(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of hours to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of hours to add.

Returns:

New timestamp that is the specified number of hours past this timestamp.

Type
NetworkTimestamp

addMilliseconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of milliseconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of milliseconds to add.

Returns:

New timestamp that is the specified number of milliseconds past this timestamp.

Type
NetworkTimestamp

addMinutes(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of minutes to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of minutes to add.

Returns:

New timestamp that is the specified number of minutes past this timestamp.

Type
NetworkTimestamp

(abstract) addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

addSeconds(count) → {NetworkTimestamp}

Description:
  • Adds a specified number of seconds to this timestamp.

Source:
Parameters:
Name Type Description
count number | bigint

Number of seconds to add.

Returns:

New timestamp that is the specified number of seconds past this timestamp.

Type
NetworkTimestamp

toString() → {string}

Description:
  • Returns string representation of this object.

Source:
Returns:

String representation of this object

Type
string