A getHours12 method has been added to the Date object. Any date object will be able to return the current hour using a 12 hour clock.
The function can be use like this:
The function can be use like this:
var date = new Date(); date.getHour12();It would return
4.