Skip to content

padMillis

function padMillis(ms, width?): string;

Defined in: src/storage/keys.ts:33

Zero-pad epoch milliseconds (default 13 digits, enough until the year 2286) so the lexicographic order of the strings is the numeric order. Negative values clamp to 0 and fractions are truncated.

Parameter Type Default value
ms number undefined
width? number 13

string