You can use the Date() object to find your time, afterwards you just have to parse a range of times and use logical ifs to print your colors and words.
Code
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
if(hours > 0 && hours < 2) {
//if the hours are between 0:00 and 2:00 print this
document.write('<font color="red">It's way to late for this shit.</font> ')
}
document.write(hours + ':' + minutes);
Or some shit like that.
As for analog displays, you're on your own. I'd imagine someone has written something on github for that task already. Google is your friend.
This post was edited by AbDuCt on Apr 2 2016 11:01pm