function hour(timestamp) {
	var date = new Date(timestamp * 1000);
	var hour = date.getHours();
	var minute = "0" + date.getMinutes();
	var ampm = hour >= 12 ? "PM" : "AM";
	var hour = hour % 12;
	var hour = hour ? hour : 12; // Hour "0" would be "12".
	return hour + ":" + minute.substr(-2) + " " + ampm;
}
// Get the hour from a timestamp.

Get the hour from a timestamp.
Get the hour from a timestamp .
function hour(timestamp) {
	var date = new Date(timestamp * 1000);
	var hour = date.getHours();
	var minute = "0" + date.getMinutes();
	var ampm = hour >= 12 ? "PM" : "AM";
	var hour = hour % 12;
	var hour = hour ? hour : 12; 
	return hour + ":" + minute.substr(-2) + " " + ampm;
}
function hour ( timestamp ) { var date = new Date ( timestamp * 1000 ) ; var hour = date . getHours ( ) ; var minute = "0" + date . getMinutes ( ) ; var ampm = hour >= 12 ? "PM" : "AM" ; var hour = hour % 12 ; var hour = hour ? hour : 12 ; return hour + ":" + minute . substr ( - 2 ) + " " + ampm ; }
Get the hour from a timestamp.
Get the hour from a timestamp .
// Hour "0" would be "12".
