epoch-seconds
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.2 • Public • Published

    epoch-seconds

    License Sponsor epoch-seconds
    Build status Commits since v3.0.2 Last commit Issues
    Latest version on npm Dependents Downloads

    Returns the amount of seconds passed since Unix epoch (1970).

    Installation

    epoch-seconds on npm

    npm install --save epoch-seconds@^3.0.2

    epoch-seconds on Yarn

    yarn add epoch-seconds@^3.0.2

    Example

    import epochSeconds from "epoch-seconds"
    
    const result = epochSeconds()

    Variable result will be something like:

    1549410770

    Development

    Development hints for maintaining and improving epoch-seconds

    Setting up:

    git clone git@github.com:jaid/epoch-seconds.git
    cd epoch-seconds
    npm install

    Testing:

    npm run test:dev

    Testing in production environment:

    npm run test

    License

    MIT License
    Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)

    Install

    npm i epoch-seconds

    DownloadsWeekly Downloads

    28

    Version

    3.0.2

    License

    none

    Unpacked Size

    6.94 kB

    Total Files

    6

    Last publish

    Collaborators

    • jaid