Skip to content

@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 ​

ParameterTypeDefault value
secondsnumber0
nanosnumber0

Returns ​

TimePoint

Properties ​

PropertyTypeDefined in
nanosnumbertime-point.ts:8
secondsnumbertime-point.ts:7