PHP code example of tayron / datehour
1. Go to this page and download the library: Download tayron/datehour library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tayron / datehour example snippets
sh
echo '<pre>';
print_r( DateHour::getRecess(2014) );
sh
echo (DateHour::checkdate(2014, 01, 12)) ? 'Data válida' : 'Data inválida';
sh
echo (DateHour::checkhour(23, 59, 59)) ? 'Hora válida' : 'Hora inválida';