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