UNPKG

@azuro-org/toolkit

Version:

This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.

10 lines (9 loc) 442 B
/** * Normalize events timestamp (ISO String, unix time in seconds or ms) to milliseconds. * * As a reasonable threshold for whether to count the number in seconds or milliseconds, * it takes the value 32_503_680_000 (which equals January 12, 1971 in ms and Jan 01, 3000 in seconds). * * So it isn't applicable to dates before January 12, 1971. * */ export declare const normalizeTimestampToMs: (timestamp: string | number) => number;