Jaid / epoch-seconds

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

Home Page:https://github.com/jaid/epoch-seconds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

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

https://github.com/jaid/epoch-seconds

License:MIT License


Languages

Language:TypeScript 97.2%Language:JavaScript 2.8%