1
I would like to know how to make a progressive stopwatch, visible on the screen and every 60 seconds update a div
that the code searched for another PHP file.
If possible, I would like hour minutes and seconds were printed separately for better positioning on the screen.
Below follows the second file I will call every 60 seconds:
<?php
date_default_timezone_set('America/Sao_Paulo');
$d = date('d');
$m = date('m');
$y = date('Y');
$h = date('H');
$i = date('i');
$s = date('s');
#setando a primeira data 10/01/2008
$dia1 = mktime(22,45,00,04,04,2019);
#setando segunda data 10/02/2008
$dia2 = mktime($h,$i,$s,$m,$d,$y);
#armazenando o valor da subtracao das datas
$d3 = ($dia2-$dia1);
#usando o round para arrendondar os valores
#converter o tempo em dias
$dias = round(($d3/60/60/24));
#converter o tempo em horas
$hrs = round(($d3/60/60));
#converter o tempo em minutos
$mins = round(($d3/60));
#exibindo minutos
echo '<b>2Quilos: </b>'.$mins."<br>";
Fabio, how are you doing so far?
– André Lins
put the code above the file that will be updated by the chronometer. That part of the chronometer I do not know how to do
– Fabio Henrique