1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
$tempo = 1800;
$dateactuelle=("Y-m-d H:i:s");
$datev = explode("",$dateobjectif);
$dateobjj = "".$datev['0'].$datev['1'].$datev['2'].$datev['3']."-".$datev['4'].$datev['5']."-".$datev['6'].$datev['7']." ".$datev['8'].$datev['9'].":".$datev['10'].$datev['11'].":".$datev['12'].$datev['13']."";
echo "<font class=\"Blanc\">E3 ".$dateobjj."</font><br>";
echo "<font class=\"Blanc\">E4 ".$datev."</font><br>";
$tempo = 1800;
$w = strtotime($dateactuelle);
$s = mktime($datev['8'].$datev['9'],$datev['10'].$datev['11'],$datev['12'].$datev['13'],$datev['4'].$datev['5'],$datev['6'].$datev['7'],$datev['0'].$datev['1'].$datev['2'].$datev['3']);
$s = date(YmdHis,$s);
$tempo = strtotime($tempo);
$datefin = $s - $tempo;
$datefin = date(YmdHis,$datefin);
echo $datefin; |