NetworkTimestamp⚓︎
- NetworkTimestamp
- Represents a network timestamp.
Extended by⚓︎
Constructors⚓︎
new 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⚓︎
- NetworkTimestamp.isEpochal
- Determines if this is the epochal timestamp.
Returns⚓︎
boolean
\c true if this is the epochal timestamp.
Methods⚓︎
addHours()⚓︎
- 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()⚓︎
- 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()⚓︎
- 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()⚓︎
- NetworkTimestamp.toString
- Returns string representation of this object.
Returns⚓︎
string
String representation of this object