var currentDateObj = new Date();
var numberOfMlSeconds = currentDateObj.getTime();
var addMlSeconds = 60 * 60 * 1000;
var newDateObj = new Date(numberOfMlSeconds + addMlSeconds);
// Write results to the <body> tag
document.write("currentDateObj = " + currentDateObj + "<br>newDateObj = " + newDateObj);
This Pen doesn't use any external JavaScript resources.