// create a new Date object
var now = new Date();

// get local time in hours
var hh = now.getHours();

// get the Universal time in hours
var utc_hh = now.getUTCHours();

// get minutes and seconds
var mn = now.getMinutes();
var ss = now.getSeconds();

// ensure there are two digits for the minute value
if( mn <= 9 ) mn = "0" +mn;  

// display both times
var wet = "Western European time: "+hh+": "+mn+": "+ss+"\n\n";
var utc = "Universal time: "+utc_hh+": "+mn+": "+ss;

document.write(wet  +  utc);