tsbetween

Convert start and end time from ISO 8601 to UNIX timestamps

Usage no npm install needed!

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

README

tsbetween

Build Status

Convert start and end time from ISO 8601 to UNIX timestamps.

Install

$ npm install --save tsbetween

Usage

'use strict';
let tsbetween = require('tsbetween');

let between = tsBetween('2016-01-13T14:33:37+00:0', '2016-01-14T14:33:37+00:0');

console.log(between.startTimestamp);
//=> 1452695617000
console.log(between.endTimestamp);
//=> 1452782017000


License

MIT © John-Lin