no anzi č molto facile

codice:
var time = new Date();      
var h = time.getHours();
var msg ='';
 switch (h)
  {
    case 1: { msg ="č la 1" }
    case 2: { msg= "solo le 2" }
    case 21: { msg="sono le ventuno"}
    // ......
}
var mydiv = document.CreateElement('DIV');
var x = document.createTextNode(msg);
mydiv.appendChild(x);