<?php
$date1 = DateTime::createFromFormat("d/m/Y H:i:s", "06/05/15 08:34:32");
$date2 = DateTime::createFromFormat("d/m/Y H:i:s", "07/05/15 10:15:57");
$interval = $date1->diff($date2);
var_dump($interval->format("Le tout : %m mois, %d jours, %h heures, %i minutes, %s secondes"));
$totalHours = $interval->m * 730.4843 + $interval->d * 24 + $interval->h + 0.0166 * $interval->i + 0.0002 * $interval->s;
PD9waHAKCiRkYXRlMSA9IERhdGVUaW1lOjpjcmVhdGVGcm9tRm9ybWF0KCJkL20vWSBIOmk6cyIsICIwNi8wNS8xNSAwODozNDozMiIpOwoKJGRhdGUyID0gRGF0ZVRpbWU6OmNyZWF0ZUZyb21Gb3JtYXQoImQvbS9ZIEg6aTpzIiwgIjA3LzA1LzE1IDEwOjE1OjU3Iik7CgokaW50ZXJ2YWwgPSAkZGF0ZTEtPmRpZmYoJGRhdGUyKTsKCnZhcl9kdW1wKCRpbnRlcnZhbC0+Zm9ybWF0KCJMZSB0b3V0IDogJW0gbW9pcywgJWQgam91cnMsICVoIGhldXJlcywgJWkgbWludXRlcywgJXMgc2Vjb25kZXMiKSk7CgokdG90YWxIb3VycyA9ICRpbnRlcnZhbC0+bSAqIDczMC40ODQzICsgJGludGVydmFsLT5kICogMjQgKyAkaW50ZXJ2YWwtPmggKyAwLjAxNjYgKiAkaW50ZXJ2YWwtPmkgKyAwLjAwMDIgKiAkaW50ZXJ2YWwtPnM7Cgp2YXJfZHVtcChzcHJpbnRmKCJFbiBoZXVyZXMgOiAlcyIsICR0b3RhbEhvdXJzKSk7Cg==