UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

9 lines (8 loc) 238 B
/** * Converts UNIX timestamp to JS Date object. * @author @dailker * @param {number} ts * @param {'s'|'ms'} [unit='ms'] * @returns {Date} */ export declare function unixTimestampToDate(ts: number, unit?: 's' | 'ms'): Date;