Skip to content

normalizeTimestamp

Converts a timestamp to JavaScript milliseconds format

Available since v1.9.0

import { normalizeTimestamp } from '@helpers4/date';
// or, from the all-in-one package (same code, one install):
import { normalizeTimestamp } from 'helpers4/date';
normalizeTimestamp(timestamp: number): number
ParameterTypeDescription
timestampnumberThe timestamp (in seconds or milliseconds)

number — Timestamp in milliseconds

View source on GitHub