var a, b;
var now = Date.now();
show("create and compare: ", (a = new Date(now)) < (b = new Date(now)), "a time is not < b's");
show("+a < +b: ", +a < +b, "a time is not < b's");
show("a < b: ", a < b, "a time is not < b's");
show("a === b: ", a === b, "a and b don't refer to the same object");
show("a == b: ", a == b, "a and b don't refer to the same object");
show("+a === +b: ", +a === +b, "their time values are the same");
show("+a == +b: ", +a == +b, "their time values are the same");
show("+a > +b: ", +a > +b, "a time is not > b's");
show("a > b: ", a > b, "a time is not > b's");
show("+a <= +b: ", +a <= +b, "a time is equal to b's");
show("a <= b: ", a <= b, "a time is equal to b's");
show("+a >= +b: ", +a >= +b, "a time is equal to b ");
show("a >= b: ", a >= b, "a time is equal to b ");
function show(prefix, result, because) {
var msg = prefix + result + ", " + because;
var pre = document.createElement('pre');
pre.innerHTML = msg.replace(/&/g, "&").replace(/</g, "<");
document.body.appendChild(pre);
}