This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Utils; | |
/** | |
* provee una forma de medir tiempos | |
* | |
* (emula el funcionamiento de console.time() y console.timeEnd() de JavaScript) | |
* | |
* @author arcoslwm <arcos.lwm@gmail.com> | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Retorna TRUE si la fecha es valida | |
* ( resuelve el problema que causa que la funcion DateTime::createFromFormat | |
* devuelva fechas validas con fechas como : DateTime::createFromFormat('d/m/Y H:i:s', '32/12/2019 16:38:08'); | |
* que retorna una fecha: '01/01/2020 16:38:08') | |
* | |
* problema descrito en: | |
* https://www.php.net/manual/es/datetime.createfromformat.php#115270 |