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
- Docker images para homologação | |
httpd 2.4.34 | |
tomcat 9.0.12 | |
- Puxando as imagens | |
docker run httpd:2.4.34 | |
docker run tomcat:9.0.12 | |
- Compactar pata .tar | |
docker save httpd:2.4.34 > http.tar |
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 | |
//Conversão de hora milessegundos para hora, minuto e segundos. | |
$contasegundos = floor($row['HORA']/1000); | |
$horas = floor($contasegundos / 3600); | |
$minutos = floor(($contasegundos - ($horas * 3600)) / 60); | |
$segundos = floor($contasegundos % 60); | |
$row['HORA'] = $horas."h ".$minutos."min ".$segundos."s"; | |
//fim | |
?> |
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 | |
$hora = 123456; | |
$h = substr($hora, -6, 2); // retorna "f" | |
$m = substr($hora, -4, 2); // retorna "ef" | |
$s = substr($hora, -2); // retorna "d" | |
$hora2 =$h.$m.$s; | |
echo $hora2; | |
echo "<br>", $h, ("h "), $m,("m "), $s, ("s"); |
NewerOlder