/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Affichage d'une chaine de la forme YYYYMMJJ // Chaine YYYYMMJJ representant la date // Chaine YYYYMMJJ representant la date d'hier //h:m:s entre 2 dates $bug["time_to_resolve"]=calcul_hours($time_resolved-$time_submitted); function calcul_hours($temps) { //combien d'heures ? //combien de minutes ? if ($min < 10) $min = "0".$min; //combien de secondes $sec = $temps - ($hours * 3600) - ($min * 60); if ($sec < 10) $sec = "0".$sec; return $hours."h".$min."m".$sec."s"; }
Comments
