Installation
npm install --save @types/unix-time
Summary
This package contains type definitions for unix-time (https://github.com/segmentio/unix-time).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unix-time.
index.d.ts
export = unixTime;
/**
* Convert a date to a [unix timestamp](http://en.wikipedia.org/wiki/Unix_timestamp) because every
* other analytics service under the sun seems to use this.
*
* @example
* import unixTime = require('unix-time');
*
* unixTime(new Date()); // 1374016861
*/
declare function unixTime(date: string | number | Date): number;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.