<?php $tripStart = new DateTime('01/09/2013'); $tripEnd = new DateTime('02/09/2013'); $nightStart = 23; $nightEnd = 5; $duration = $tripEnd->getTimestamp() - $tripStart->getTimestamp(); var_dump($duration); ?>
You have javascript disabled. You will not be able to edit any code.