50 of 110 menu

PHP Date and Time

To get the time using the function date the following commands are used: H - hours, i - minutes, s - seconds.

Let's output the current time:

<?php echo date('H:i:s'); ?>

See Also

  • the date function,
    which formats a date
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline