コンテンツにスキップ

NetworkTimestamp⚓︎

NetworkTimestamp
Represents a Symbol network timestamp with millisecond resolution.

Extends⚓︎

Constructors⚓︎

new NetworkTimestamp()⚓︎

new NetworkTimestamp(timestamp): NetworkTimestamp

Creates a timestamp.

Parameters⚓︎

Parameter Type Description
timestamp number | bigint Raw network timestamp.

Returns⚓︎

NetworkTimestamp

Inherited from⚓︎

NetworkTimestamp.constructor

Properties⚓︎

Property Type Description Inherited from
timestamp bigint Underlying timestamp. NetworkTimestamp.timestamp

Accessors⚓︎

isEpochal⚓︎

Get Signature⚓︎

get isEpochal(): boolean
NetworkTimestamp.isEpochal
Determines if this is the epochal timestamp.
Returns⚓︎

boolean

\c true if this is the epochal timestamp.

Inherited from⚓︎

NetworkTimestamp.isEpochal

Methods⚓︎

addHours()⚓︎

addHours(count): NetworkTimestamp
NetworkTimestamp.addHours
Adds a specified number of hours to this timestamp.

Parameters⚓︎

Parameter Type Description
count number | bigint Number of hours to add.

Returns⚓︎

NetworkTimestamp

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

Inherited from⚓︎

NetworkTimestamp.addHours


addMilliseconds()⚓︎

addMilliseconds(count): NetworkTimestamp
NetworkTimestamp.addMilliseconds
Adds a specified number of milliseconds to this timestamp.

Parameters⚓︎

Parameter Type Description
count number | bigint Number of milliseconds to add.

Returns⚓︎

NetworkTimestamp

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


addMinutes()⚓︎

addMinutes(count): NetworkTimestamp
NetworkTimestamp.addMinutes
Adds a specified number of minutes to this timestamp.

Parameters⚓︎

Parameter Type Description
count number | bigint Number of minutes to add.

Returns⚓︎

NetworkTimestamp

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

Inherited from⚓︎

NetworkTimestamp.addMinutes


addSeconds()⚓︎

addSeconds(count): NetworkTimestamp
NetworkTimestamp.addSeconds
Adds a specified number of seconds to this timestamp.

Parameters⚓︎

Parameter Type Description
count number | bigint Number of seconds to add.

Returns⚓︎

NetworkTimestamp

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

Overrides⚓︎

NetworkTimestamp.addSeconds


toString()⚓︎

toString(): string
NetworkTimestamp.toString
Returns string representation of this object.

Returns⚓︎

string

String representation of this object

Inherited from⚓︎

NetworkTimestamp.toString