<?php
//round pour le changement d'heure
$debut = mktime(0, 0, 0, 10, 26, 2013);
$fin = mktime(0, 0, 0, 11, 10, 2013);
$d1 = new DateTime('now',self::getDateZoneObject());
$d2 = new DateTime('now',self::getDateZoneObject())
$d1->setTimestamp($debut);
$d2->setTimestamp($fin);
$diff = $d1->diff($d2);
prinr_t($diff);
- Output for 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected '$d1' (T_VARIABLE) in /in/tYXlL on line 9
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_VARIABLE in /in/tYXlL on line 9
Process exited with code 255.
preferences:
188.72 ms | 1395 KiB | 61 Q