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.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
ms |
number |
undefined |
width? |
number |
13 |
Returns
Section titled “Returns”string