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
Adds Date.nowSecs() to get current time in seconds
<script type="module">
import nowsecs from 'https://cdn.skypack.dev/nowsecs';
</script>
Adds Date.nowSecs
which returns the current time in seconds. It also polyfills Date.now
.
require('nowsecs');
<script type="text/javascript" src="nowsecs.min.js"></script>
By James Hartig