Returns the amount of seconds passed since Unix epoch (1970).
npm install --save epoch-seconds@^3.0.2
yarn add epoch-seconds@^3.0.2
import epochSeconds from "epoch-seconds"
const result = epochSeconds()
Variable result
will be something like:
1549410770
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
MIT License
Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)