get current hour and minutes php code example Example: php get hour $hour = date('H:m:s'); echo $hour;