JSFiddle - React, Tailwind, and code Playground
JavaScript
var horaInicio = new Date('10/10/2016 2:15:00');
var horaFin = new Date('10/10/2016 3:26:00');
var segundos = (horaFin.getTime() - horaInicio.getTime()) / 1000;
var minutos = segundos / 60;
var horas = minutos / 60;
alert(segundos);
alert(minutos);
alert(horas);