function skydailyUtils() {}

//function transforms pluck sitelife dates into nicely rendered dates
//used in blog post comments and blog pages
skydailyUtils.formatDateStamp = function(stamp) {
	var date = new Date(stamp);

	//array of months
	arrayMonths = ["January","February","March","April","May","June","July","August","September","October","November","December"];
	
	var month = arrayMonths[date.getMonth()],
		day = date.getDate(),
		year = date.getFullYear(),
		hours = date.getHours(),
		mins = date.getMinutes(),
		ap = "am";
	
	if(hours == 0) {
		hours = 12;
	} else if(hours == 12) {
		ap = "pm";
	} else if(hours > 12) {
		hours -= 12;
		ap = "pm";
	}
	
	if (mins < 10) mins = "0" + mins;
	return [month, " ", day, ", ", year, " ", hours, ":", mins, ap].join("");
};