Affichage
This commit is contained in:
parent
1585f90861
commit
5ebb507e13
@ -104,7 +104,7 @@ foreach ($companies as $item)
|
||||
$dateStop = new Zend_Date($dateStopIn, 'yyyy-MM-dd');
|
||||
$dateStart = new Zend_Date($dateStartIn, 'yyyy-MM-dd');
|
||||
|
||||
echo $item.' - '.$dateStart->toString('yyyy-MM-dd').' '.$dateStop->toString('yyyy-MM-dd')."\n";
|
||||
echo date('Y-m-d H:i:s').' - '.$cpt.' - '.$item.' - '.$dateStart->toString('yyyy-MM-dd').' '.$dateStop->toString('yyyy-MM-dd')."\n";
|
||||
$difference = $dateStop->sub($dateStart);
|
||||
$measure = new Zend_Measure_Time($difference->toValue(), Zend_Measure_Time::SECOND);
|
||||
$measure->convertTo(Zend_Measure_Time::MONTH);
|
||||
@ -116,7 +116,7 @@ foreach ($companies as $item)
|
||||
$line = array();
|
||||
$line['siren'] = $item;
|
||||
$line['dateCalc'] = $dateCalcul->toString('yyyy-MM-dd');
|
||||
echo "\t".$dateCalcul->toString('yyyy-MM-dd')."\n";
|
||||
echo date('Y-m-d H:i:s').' - '.$cpt."\t".$dateCalcul->toString('yyyy-MM-dd')."\n";
|
||||
if ($dateCalcul->compare($dateReal) == -1) {
|
||||
echo "Inconnue à cette date\n";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user