/epoch-seconds

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

Primary LanguageTypeScriptMIT LicenseMIT

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)