xxxxxxxxxx
var a = moment([2007, 0, 28]);
var b = moment([2007, 0, 29]);
a.from(b) // "a day ago"
xxxxxxxxxx
let seconds = 456;
console.log(moment.utc(seconds*1000).format('HH:mm:ss')); // 00:07:36
xxxxxxxxxx
var a = moment([2007, 0, 28]);
var b = moment([2007, 0, 29]);
a.to(b) // "in a day"