コンテンツにスキップ

NetworkTimestamp⚓︎

NetworkTimestamp
Represents a network timestamp.

Extended by⚓︎

Constructors⚓︎

new NetworkTimestamp()⚓︎

new NetworkTimestamp(timestamp): NetworkTimestamp

Creates a timestamp.

Parameters⚓︎

Parameter Type Description
timestamp number | bigint Raw network timestamp.

Returns⚓︎

NetworkTimestamp

Properties⚓︎

Property Type Description
timestamp bigint Underlying 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.

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.


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.


addSeconds()⚓︎

abstract 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.


toString()⚓︎

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

Returns⚓︎

string

String representation of this object