nowsecs

Adds Date.nowSecs() to get current time in seconds

Usage no npm install needed!

<script type="module">
  import nowsecs from 'https://cdn.skypack.dev/nowsecs';
</script>

README

nowsecs

Adds Date.nowSecs which returns the current time in seconds. It also polyfills Date.now.

Usage

require('nowsecs');
<script type="text/javascript" src="nowsecs.min.js"></script>

By James Hartig