Twitter API Consulting
140dev@gmail.com
781-879-2960
@140dev

Free open source code for Twitter API Engagement Programming

get_mention_hours.php

<?php
// Copyright (c) 2013 Adam Green. All rights reserved.
// See http://140dev.com/download/license.txt for licensing of this code.

function get_mention_hours() {
	global $db;

	$query = "SELECT hour(created_at) AS tweet_hour, count(*) AS cnt
		FROM tweet_mentions
		GROUP BY hour(created_at)";

	return $db->select_array($query);
}
?>


I'm a member of the #140dev Twitter development community - join us for free source code and tutorials: