$(".examTime").each(function() {
    let fromNow = moment.unix(parseInt($(this).data("time"))).fromNow();
    $(this).text(fromNow);
});

$(".examTime").each(function() {
    let fromNow = moment.unix(parseInt($(this).data("time"))).fromNow(true);
    $(this).text(fromNow);
});

remove exam fromNow suffix