This commit is contained in:
Laurent Destailleur 2008-11-05 19:46:09 +00:00
parent 77dff29bf1
commit afd8068d0a

View File

@ -38,15 +38,17 @@ function ConvertTime2Seconds($iHours=0,$iMinutes=0,$iSeconds=0)
} }
/** \brief Converti les secondes en heures et minutes /** \brief Return, in clear text, value of a number of seconds in days, hours and minutes
* \param iSecond Nombre de secondes * \param iSecond Number of seconds
* \param format Choix de l'affichage (all:affichage complet, hour: n'affiche que les heures, min: n'affiche que les minutes) * \param format Output format (all:affichage complet, hour: n'affiche que les heures, min: n'affiche que les minutes)
* \return sTime Temps formaté * \return sTime Formated text of duration
*/ */
function ConvertSecondToTime($iSecond,$format='all'){ function ConvertSecondToTime($iSecond,$format='all')
{
global $langs; global $langs;
if ($format == 'all'){ if ($format == 'all')
{
if ($iSecond > 86400) if ($iSecond > 86400)
{ {
$sDay=date("d",$iSecond)-1; $sDay=date("d",$iSecond)-1;