@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.213ts5.8
1.0.213ts5.7
1.0.213latest
1.0.213ts4.5
1.0.213ts4.6
1.0.213ts4.7
1.0.213ts4.8
1.0.213ts4.9
1.0.213ts5.0
1.0.213ts5.1
1.0.213ts5.2
1.0.213ts5.3
1.0.213ts5.4
1.0.213ts5.5
1.0.213ts5.6
1.0.213ts5.9
1.0.01ts4.2
1.0.01ts4.3
1.0.01ts4.4

Version History

VersionDownloads (Last 7 Days)Published
1.0.213
1.0.10
1.0.01

Package Sidebar

Install

npm i @types/unix-time

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

3.25 kB

Total Files

5

Last publish

Collaborators

  • types