@types/unix-time
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/unix-time

Weekly Downloads

19

Version

1.0.2

License

MIT

Unpacked Size

3.25 kB

Total Files

5

Last publish

Collaborators

  • types