Skip to content
Typetypesv0.17.0

EpochMs

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

Branded apart from EpochSec because Discord <t:...> timestamp markup reads seconds. 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">;