Echo Messages By Checking current_time()

You would just need to format the time that is returned by current_time() with the php date() function like this:

$my_time = date('G', current_time('timestamp'));

The param ‘G’ tells the function you just want to have the hour part (0 to 23) of the date. Have a look here: http://www.php.net/manual/en/function.date.php