Returns the amount of seconds passed since Unix epoch (1970).
npm install --save epoch-seconds@^3.0.2yarn add epoch-seconds@^3.0.2import epochSeconds from "epoch-seconds"
const result = epochSeconds()Variable result will be something like:
1549410770Development hints for maintaining and improving epoch-seconds
Setting up:
git clone git@github.com:jaid/epoch-seconds.git
cd epoch-seconds
npm installTesting:
npm run test:devTesting in production environment:
npm run testMIT License
Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)