<!-- 
var now = new Date();
var realHours = now.getHours();
var realMonth = now.getMonth() + 1;
var realDate = now.getDate();


//convert minutes to string, so number of characters can be determined. see realMins2digs below
var realMins = now.getMinutes();
var realMins = realMins.toString();

//condition tests for the length of the realMins. if less than 2, a 0 is added (because zero does not display) 
realMins2digs = (realMins.length < 2) ? "0" + realMins : realMins;

//the year variable is converted to a string, then the last 2 chars of the substring are displayed 
var realYear = now.getFullYear();
var realYear = realYear.toString();

//final time display. condition determines if hours is more than 12. if so, 12 subtracted.
realTime = (realHours > 12) ? (realHours - 12) + ":" + realMins2digs + "PM" : realHours + ":" + realMins2digs + "AM";

// -->