To get the time using the function date the following commands are used: H - hours, i - minutes, s - seconds.
date
H
i
s
Let's output the current time:
<?php echo date('H:i:s'); ?>