JSFiddle - React, Tailwind, and code Playground

JavaScript

then = Date.parse("2015-11-20T19:56:12+0000");
now = Date.now();
var difference = now - then;
var hours = Math.floor(difference/3600000);
document.write(hours+" hours ago");