-3

I try to use date() function

But when I reload the page the displayed time does not make sense. It goes goes forward and backward.

Does anyone know what is wrong ?

<?php

 echo date("H:m:s");

?>
Flamin_
  • 23
  • 4
  • 1
    Read the manual at http://php.net/manual/en/function.date.php There are plenty of examples that show date("H:i:s") – jjwdesign Feb 04 '16 at 19:10

1 Answers1

5

m is for month. i is for minutes:

<?php

 echo date("H:i:s");

?>
John Conde
  • 217,595
  • 99
  • 455
  • 496