@temporary-escape/mod-sdk / TimePoint
Class: TimePoint
Defined in: time-point.ts:6
A UTC timestamp split into seconds since the Unix epoch and the sub-second nanosecond remainder. Mirrors the engine's CBOR extendedTime (tag 1001) representation of std::chrono::system_clock::time_point.
Constructors
Constructor
ts
new TimePoint(seconds?: number, nanos?: number): TimePoint;Defined in: time-point.ts:10
Parameters
| Parameter | Type | Default value |
|---|---|---|
seconds | number | 0 |
nanos | number | 0 |
Returns
TimePoint
Properties
| Property | Type | Defined in |
|---|---|---|
nanos | number | time-point.ts:8 |
seconds | number | time-point.ts:7 |
