Echo
This commit is contained in:
commit
6a2f2b73d6
@ -104,7 +104,7 @@ foreach ($companies as $item)
|
|||||||
$dateStop = new Zend_Date($dateStopIn, 'yyyy-MM-dd');
|
$dateStop = new Zend_Date($dateStopIn, 'yyyy-MM-dd');
|
||||||
$dateStart = new Zend_Date($dateStartIn, '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);
|
$difference = $dateStop->sub($dateStart);
|
||||||
$measure = new Zend_Measure_Time($difference->toValue(), Zend_Measure_Time::SECOND);
|
$measure = new Zend_Measure_Time($difference->toValue(), Zend_Measure_Time::SECOND);
|
||||||
$measure->convertTo(Zend_Measure_Time::MONTH);
|
$measure->convertTo(Zend_Measure_Time::MONTH);
|
||||||
@ -116,7 +116,7 @@ foreach ($companies as $item)
|
|||||||
$line = array();
|
$line = array();
|
||||||
$line['siren'] = $item;
|
$line['siren'] = $item;
|
||||||
$line['dateCalc'] = $dateCalcul->toString('yyyy-MM-dd');
|
$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) {
|
if ($dateCalcul->compare($dateReal) == -1) {
|
||||||
echo "Inconnue à cette date\n";
|
echo "Inconnue à cette date\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user