Skip to content
Typetypesv0.16.1

EpochMs

Absolute epoch milliseconds, the canonical JS time value from Date.now().

Branded apart from EpochSec because Discord <t:...> timestamp markup reads seconds, so an epoch-ms value rendered there points roughly fifty years past the intended time. Convert with a divide by 1000 before building the markup.

type EpochMs = Tagged<number, "EpochMs">;